3 path: "/etc/bind/{{ domain }}"
4 register: domain_exists
5 changed_when: not domain_exists.stat.exists
7 - name: Copy domain template
11 dest: "/etc/bind/{{ domain }}"
16 when: not domain_exists.stat.exists
21 echo 'zone "{{ domain }}" {
23 file "/etc/bind/{{ domain }}";
26 };' >> /etc/bind/named.conf.local
29 when: not domain_exists.stat.exists
36 when: not domain_exists.stat.exists