From b92949617733fa0bd8febe4c6c66ee7e9daeb1e9 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 30 Jul 2019 21:32:00 +0300 Subject: [PATCH] Feat(named): Setup `/etc/resolv.conf` to use installed BIND --- playbooks/debian/roles/named/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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") -- 2.39.5