ensure the correct pdns config for secondaries

This commit is contained in:
René Mewißen
2025-12-11 12:30:26 +01:00
parent 15ad130112
commit c450d869ab
2 changed files with 6 additions and 2 deletions

View File

@@ -101,7 +101,7 @@
mode: "0644"
owner: "root"
group: "root"
force: no
force: yes
- name: Nameserver | powerdns-server | set listening IPs
when:
@@ -110,7 +110,7 @@
- powerdns_recursor is defined
- powerdns_recursor is true
template:
src: "powerdns-server-sec-mysql-config.j2"
src: "powerdns-server-sec-config.j2"
dest: "/etc/powerdns/pdns.conf"
owner: "root"
group: "root"

View File

@@ -0,0 +1,4 @@
include-dir=/etc/powerdns/pdns.d
launch=
local-address={{ ansible_default_ipv4.address }}, [{{ ansible_default_ipv6.address }}], 127.0.0.1:553{% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}:553{% endif %}
security-poll-suffix=