3 path: "/etc/bind/{{ domain }}"
4 register: domain_exists
6 - name: Copy domain template
10 dest: "/etc/bind/{{ domain }}"
15 when: not domain_exists.stat.exists
24 file "/etc/bind/{{ domain }}";
27 };' >> /etc/bind/named.conf.local
30 when: not domain_exists.stat.exists
37 when: not domain_exists.stat.exists