From: Oleg Broytman Date: Tue, 30 Jul 2019 18:39:01 +0000 (+0300) Subject: Feat(add-dns-domain): Add the domain to `/etc/resolv.conf` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9824aa40f54036bf0dee976654fe9a214eb2e61e;p=ansible.git Feat(add-dns-domain): Add the domain to `/etc/resolv.conf` --- diff --git a/playbooks/debian/roles/add-dns-domain/tasks/main.yml b/playbooks/debian/roles/add-dns-domain/tasks/main.yml index a8c93fb..235bade 100644 --- a/playbooks/debian/roles/add-dns-domain/tasks/main.yml +++ b/playbooks/debian/roles/add-dns-domain/tasks/main.yml @@ -26,6 +26,13 @@ };' >> /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: