Restart also unbound when updating zones

master
blallo 2020-11-04 01:10:54 +01:00
parent 868b69b91a
commit cf943e5b4d
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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: