From 351e7f53d928788a0b8b38abaab82faa77a33b8b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 30 Jul 2019 20:02:37 +0300 Subject: [PATCH] Fix(named): Become root The file `/etc/bind/named.conf.options` is not readable for the current user. --- playbooks/debian/roles/named/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/debian/roles/named/tasks/main.yml b/playbooks/debian/roles/named/tasks/main.yml index 193cace..7e433ec 100644 --- a/playbooks/debian/roles/named/tasks/main.yml +++ b/playbooks/debian/roles/named/tasks/main.yml @@ -1,4 +1,5 @@ - name: Check named.conf.options + become: true shell: "grep -c '^\\s*allow-query' /etc/bind/named.conf.options || echo 0" register: named_conf changed_when: named_conf.stdout == "0" -- 2.39.5