PowerDNS secondary

This commit is contained in:
2025-02-22 17:27:57 +01:00
parent 3b3748d301
commit f5c0a32ffa
3 changed files with 50 additions and 33 deletions

View File

@@ -96,13 +96,26 @@
- powerdns_secondary is defined
- powerdns_secondary is true
template:
src: "powerdns-server-pri-mysql-config.j2"
src: "powerdns-server-sec-mysql-config.j2"
dest: "/etc/powerdns/pdns.d/mysql.conf"
mode: "0644"
owner: "root"
group: "root"
force: no
- name: Nameserver | powerdns-server | set listening IPs
when:
- powerdns_secondary is defined
- powerdns_secondary is true
- powerdns_recursor is defined
- powerdns_recursor is true
template:
src: "powerdns-server-sec-mysql-config.j2"
dest: "/etc/powerdns/pdns.conf"
owner: "root"
group: "root"
force: yes
- name: Nameserver | powerdns-server | disable bind
block:
- name: Nameserver | powerdns-server | get running services

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=