Restart also unbound when updating zones
This commit is contained in:
parent
868b69b91a
commit
cf943e5b4d
|
@ -3,11 +3,13 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: nsd.service
|
name: nsd.service
|
||||||
state: restarted
|
state: restarted
|
||||||
|
listen: restart dns
|
||||||
|
|
||||||
- name: restart unbound
|
- name: restart unbound
|
||||||
systemd:
|
systemd:
|
||||||
name: unbound.service
|
name: unbound.service
|
||||||
state: restarted
|
state: restarted
|
||||||
|
listen: restart dns
|
||||||
|
|
||||||
- name: restart wireguard
|
- name: restart wireguard
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
group: nsd
|
group: nsd
|
||||||
mode: 0640
|
mode: 0640
|
||||||
when: main_zone_stub.changed
|
when: main_zone_stub.changed
|
||||||
notify: restart nsd
|
notify: restart dns
|
||||||
|
|
||||||
- name: Ensure zones stubs are present
|
- name: Ensure zones stubs are present
|
||||||
template:
|
template:
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
zrecords: "{{ item.item.records|json_query('[?type!=`MX`]') }}"
|
zrecords: "{{ item.item.records|json_query('[?type!=`MX`]') }}"
|
||||||
when: item.changed
|
when: item.changed
|
||||||
loop: "{{ zone_stubs.results }}"
|
loop: "{{ zone_stubs.results }}"
|
||||||
notify: restart nsd
|
notify: restart dns
|
||||||
|
|
||||||
- name: Ensure nsd is started and enabled
|
- name: Ensure nsd is started and enabled
|
||||||
systemd:
|
systemd:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user