Files
ansible-pull/roles/nameserver/handlers/main.yml
T
rene 3d6f13c94e 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.
2026-10-22 18:46:03 +02:00

29 lines
456 B
YAML
Executable File

- name: restart_named
service:
name: "named"
state: restarted
- name: restart_snmpd
service:
name: "snmpd"
state: restarted
- name: restart_unbound
service:
name: "unbound"
state: restarted
- name: restart_pdns
service:
name: "pdns"
state: restarted
- name: restart_pdns_recursor
service:
name: "pdns-recursor"
state: restarted
- name: restart_mysqld
service:
name: "mysqld"
state: restarted