From d90f0d8096a157e92e7e572d6dbd61b7196d98ae Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 30 Jul 2019 20:02:16 +0300 Subject: [PATCH] Fix(named): Fix regexp --- playbooks/debian/roles/named/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/debian/roles/named/tasks/main.yml b/playbooks/debian/roles/named/tasks/main.yml index 092d531..193cace 100644 --- a/playbooks/debian/roles/named/tasks/main.yml +++ b/playbooks/debian/roles/named/tasks/main.yml @@ -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" -- 2.39.5