From: Oleg Broytman Date: Tue, 30 Jul 2019 18:32:00 +0000 (+0300) Subject: Feat(named): Setup `/etc/resolv.conf` to use installed BIND X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b92949617733fa0bd8febe4c6c66ee7e9daeb1e9;p=ansible.git Feat(named): Setup `/etc/resolv.conf` to use installed BIND --- diff --git a/playbooks/debian/roles/named/tasks/main.yml b/playbooks/debian/roles/named/tasks/main.yml index 8c6b7d0..d3bf3da 100644 --- a/playbooks/debian/roles/named/tasks/main.yml +++ b/playbooks/debian/roles/named/tasks/main.yml @@ -34,4 +34,13 @@ service: name: bind9 state: reloaded + + - name: Configure resolver + become: true + copy: + content: "nameserver 127.0.0.1" + dest: /etc/resolv.conf + owner: root + group: root + mode: '0644' when: named_conf.stdout in ('', "0")