]> git.phdru.name Git - ansible.git/commitdiff
Feat(named): Setup `/etc/resolv.conf` to use installed BIND
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 18:32:00 +0000 (21:32 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 18:32:00 +0000 (21:32 +0300)
playbooks/debian/roles/named/tasks/main.yml

index 8c6b7d0f9e6048c1cb69f5ac2d3e7a5ce5aab59d..d3bf3da20a2c3058d87e6e188a3b1e6fb938c6ab 100644 (file)
       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")