1 - name: Check named.conf.options
3 shell: "grep -c '^\\s*allow-query' /etc/bind/named.conf.options || echo 0"
5 changed_when: named_conf.stdout == "0"
8 msg: "BIND has already been configured"
9 when: named_conf.stdout != "0"
16 install_recommends: no
21 when: named_conf.stdout == "0"
23 - name: Configure BIND
26 src: named.conf.options
27 dest: /etc/bind/named.conf.options
31 when: named_conf.stdout == "0"
38 when: named_conf.stdout == "0"