use handler to restart powerdns

This commit is contained in:
2024-07-25 11:11:49 +02:00
parent a6529fa87d
commit 86f9716950
2 changed files with 7 additions and 1 deletions

View File

@@ -12,3 +12,8 @@
service:
name: "unbound"
state: restarted
- name: restart_pdns
service:
name: "pdns"
state: restarted

View File

@@ -55,6 +55,7 @@
when:
- powerdns_primary is defined
- powerdns_primary is true
notify: restart_pdns
- name: nameserver | powerdns-recursor | disable bind
service: