|
|
|
@ -44,7 +44,7 @@
|
|
|
|
|
group: nsd
|
|
|
|
|
mode: 0640
|
|
|
|
|
when: main_zone_stub.changed
|
|
|
|
|
notify: restart nsd
|
|
|
|
|
notify: restart dns
|
|
|
|
|
|
|
|
|
|
- name: Ensure zones stubs are present
|
|
|
|
|
template:
|
|
|
|
@ -76,7 +76,7 @@
|
|
|
|
|
zrecords: "{{ item.item.records|json_query('[?type!=`MX`]') }}"
|
|
|
|
|
when: item.changed
|
|
|
|
|
loop: "{{ zone_stubs.results }}"
|
|
|
|
|
notify: restart nsd
|
|
|
|
|
notify: restart dns
|
|
|
|
|
|
|
|
|
|
- name: Ensure nsd is started and enabled
|
|
|
|
|
systemd:
|
|
|
|
|