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

@@ -11,4 +11,9 @@
- name: restart_unbound
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:
@@ -68,4 +69,4 @@
service:
name: "pdns"
state: started
enabled: true
enabled: true