From: Oleg Broytman Date: Tue, 30 Jul 2019 17:02:37 +0000 (+0300) Subject: Fix(named): Become root X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=sidebyside;h=351e7f53d928788a0b8b38abaab82faa77a33b8b;p=ansible.git Fix(named): Become root The file `/etc/bind/named.conf.options` is not readable for the current user. --- 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"