]> git.phdru.name Git - ansible.git/commitdiff
Feat(add-dns-domain): Add the domain to `/etc/resolv.conf`
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 18:39:01 +0000 (21:39 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 18:39:01 +0000 (21:39 +0300)
playbooks/debian/roles/add-dns-domain/tasks/main.yml

index a8c93fbe3cb0a0f822bff940f85cab109ffb1076..235bade1404c12658d05febf5709d0bf9537205d 100644 (file)
         };' >> /etc/bind/named.conf.local
 
 
+    - name: Update resolver config
+      become: true
+      lineinfile:
+        path: /etc/resolv.conf
+        regexp: "^domain {{ domain }}"
+        line: "domain {{ domain }}"
+
     - name: Reload BIND
       become: true
       service: