- name: Update config
become: true
shell: |
-echo '
+ echo '
-zone "{{ domain }}" {
- type master;
- file "/etc/bind/{{ domain }}";
- allow-query { any; };
- notify yes;
-};
-' >> /etc/bind/named.conf.local
+ zone "{{ domain }}" {
+ type master;
+ file "/etc/bind/{{ domain }}";
+ allow-query { any; };
+ notify yes;
+ };' >> /etc/bind/named.conf.local
when: not domain_exists.stat.exists