]> git.phdru.name Git - ansible.git/commitdiff
Fix(named): Fix regexp
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 17:02:16 +0000 (20:02 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 17:40:12 +0000 (20:40 +0300)
playbooks/debian/roles/named/tasks/main.yml

index 092d531340c158c69a7c23bbe276fc8216fe3e9c..193cace3a3ff81ca4ade2cdf0804b194a24b345f 100644 (file)
@@ -1,5 +1,5 @@
 - name: Check named.conf.options
-  shell: "grep -c '^[ \\t]\\+allow-query' /etc/bind/named.conf.options || echo 0"
+  shell: "grep -c '^\\s*allow-query' /etc/bind/named.conf.options || echo 0"
   register: named_conf
   changed_when: named_conf.stdout == "0"