From 9824aa40f54036bf0dee976654fe9a214eb2e61e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 30 Jul 2019 21:39:01 +0300 Subject: [PATCH] Feat(add-dns-domain): Add the domain to `/etc/resolv.conf` --- playbooks/debian/roles/add-dns-domain/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.39.5