nameserver: always deploy pdns-recursor config and restart on change

The recursor config template used 'force: no', so an already-present
/etc/powerdns/recursor.d/010-custom.conf was never updated. Hosts that had a
stale file were missing 'forward-zones-recurse = universe.local=...', which
breaks resolution of internal names (e.g. step-ca.universe.local).

Remove force: no so the template is always applied, and add a
restart_pdns_recursor handler notified on config change.
This commit is contained in:
rene committed 2026-10-22 18:46:03 +02:00
1 parent 977db95652
commit 3d6f13c94e
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -18,6 +18,11 @@
name: "pdns"
state: restarted
- name: restart_pdns_recursor
service:
name: "pdns-recursor"
state: restarted
- name: restart_mysqld
service:
name: "mysqld"
@@ -10,7 +10,7 @@
mode: "0644"
owner: "root"
group: "root"
force: no
notify: restart_pdns_recursor
- name: nameserver | powerdns-recursor | disable unbound
service: