]> git.phdru.name Git - ansible.git/commitdiff
Fix(named): Become root
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 17:02:37 +0000 (20:02 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 17:40:12 +0000 (20:40 +0300)
The file `/etc/bind/named.conf.options`
is not readable for the current user.

playbooks/debian/roles/named/tasks/main.yml

index 193cace3a3ff81ca4ade2cdf0804b194a24b345f..7e433ec9fe3e7615e336cd63a5ffae5e9654151a 100644 (file)
@@ -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"