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
25 file "/etc/bind/{{ domain }}";
28 };' >> /etc/bind/named.conf.local
31 when: not domain_exists.stat.exists
38 when: not domain_exists.stat.exists