use handler to restart powerdns

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

No files matched your search

+5
View File
@@ -11,4 +11,9 @@
- name: restart_unbound
service:
name: "unbound"
state: restarted
- name: restart_pdns
service:
name: "pdns"
state: restarted
@@ -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