Restart also unbound when updating zones
This commit is contained in:
parent
868b69b91a
commit
cf943e5b4d
|
@ -3,11 +3,13 @@
|
|||
systemd:
|
||||
name: nsd.service
|
||||
state: restarted
|
||||
listen: restart dns
|
||||
|
||||
- name: restart unbound
|
||||
systemd:
|
||||
name: unbound.service
|
||||
state: restarted
|
||||
listen: restart dns
|
||||
|
||||
- name: restart wireguard
|
||||
systemd:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user