homeserver/playbooks/on-off/set_dns_resolver.yml

13 lines
240 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
---
- hosts: dns
become: yes
tasks:
- name: Setze DNS-Resolver fuer pihole-*
lineinfile:
path: /etc/resolv.conf.head
line: nameserver 192.168.2.2
create: yes
backrefs: false
mode: 0664