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:
1 parent
977db95652
commit
3d6f13c94e
2 files changed
+6
-1
No files matched your search
@@ -18,6 +18,11 @@
|
|||||||
name: "pdns"
|
name: "pdns"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart_pdns_recursor
|
||||||
|
service:
|
||||||
|
name: "pdns-recursor"
|
||||||
|
state: restarted
|
||||||
|
|
||||||
- name: restart_mysqld
|
- name: restart_mysqld
|
||||||
service:
|
service:
|
||||||
name: "mysqld"
|
name: "mysqld"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
force: no
|
notify: restart_pdns_recursor
|
||||||
|
|
||||||
- name: nameserver | powerdns-recursor | disable unbound
|
- name: nameserver | powerdns-recursor | disable unbound
|
||||||
service:
|
service:
|
||||||
|
|||||||
Reference in new issue
Block a user