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

@@ -1,33 +1,33 @@
$ANSIBLE_VAULT;1.1;AES256
39616635346238323063313534646239616663633962363764646466383336316132623463343130
3261353336636334373761626263646631383166353734610a393834653066646164646434316337
66376666356631363135363764623738313064643734336432393733653134633366656635383738
6364646534303866610a326366383033336666353739346330623636633635616331353734633533
63396131623861333765396532656365303738393731323635306631653835326235356539383165
61643538633538613861386230623936336462613864313533386638646332353461366236383034
34666261636261653261376465313138343939643265626464643237636136316363366634373931
39633961636365633735623534313034363563346533396139666638666264393966656264336162
38336464666232656637313135613266353135393138306132363966343532333739313435343362
66306465623135623564323135333266373261313466353330646433313262633431313839353861
38393238363764636536343437623066303834373966643937313636353938646366316532316463
35633538373233356136373831303733343430353033376565353736343962356463616636366234
32646635613463666335346131373530613236366333646163373630623539656363366465396438
30663665363866376461343536353163616236303237373139346562393433326365343439313632
63373136323638633561326236653639323464646264346566636363653161366464346633346361
35326339393031666632613031656563376433333265393930366430363631363531363963363162
61646338663839643539613933373038383032373738663237303138383563313236366163663561
64396163623264656337636130356638323734306433643134626266373334646538373939623139
30653334363634303436663534333263616533386565626133323034663735653336356333376265
65623864393664616531616636346632663161386137343735353261333035376235363039396633
63323437653361306164663536376266656263646637626139653135373632363939373533633135
31316538376339333132386136336634646135646531653938396562653633376166356261346563
64356665346239383661346139626636303632633465643333316565356333643965653664623532
39636638393037653538353634373437383832303833346563646561666436323763373932326231
39303330646563613266306130653330656236336166363434346234646666613765386162346131
66663264333330313263366236373431353237396535353036306635666662323130663765653538
65316636353762626130373836613336663332633763616138623363646664323931363063363132
62323861636239393661323736626135626261663233663534653363636463363637373136356131
33653666393063303438623732653032383332653237653263643834383565656261393238306331
63313831653464393334373434316364613363646339376136653232306163353135353839353736
63343134356630646132393736663363636131616462343361346663633939336364393062393138
66326532306434306433
35316331613562646337303937613236363263393739626530333265356566623430316533383031
3166386236376266336664313737633436303634383034630a653739323136393865343961306161
33656165646637343532643131653536363561313535653665666234656332633266333835353239
6336303531636138390a656339653330316566663231383065643866333861653333663463363764
38363833383133303966633764396436393138633435356164363365646439373835393236313961
66666366643863313962636135646266333938663532353061663865313131646132336637386431
66396236646633386465386333343564346163363437313433626361366565653533653536363865
31643837663339336562303464333834626336323231663238613437306262663463633866343131
32393534616265393439383035393132326430313432393832663335626536323261313336653732
61303537353933363534343234373962623463613836393336333261643234393838653666333233
37326133356231316634643263316366353065343433653030333339663832646537386631663531
63306162616632343833356361666433323031376463316138336438643133313932346162633134
62306337623064323533326562316232633334353761383336336662393664653839653335646466
66633431316436626137643562336662653763396232333434303734613931623634356438313331
36663236646162633030663766376639666538306132353863613563336530323765643665656466
36643332626166353432313661313330366161626334353831323034323766363266653762346362
30656337383638623038313838323462316132383430383337636638366239323731666235623663
36303963613365633233653031353436363636333965356462353130303066303861316436363330
36383735333439663433356366643430306333656433643539346632663064323636373731633230
31303663613138396531623463306131636430366630626331313665323761396561386636353562
34663430333661333765613235383231366264353564333031333966356338653135616637616363
34323930613136643433363861636630313233613763653765643238343839353930336235613032
64356361646639343763643166626632353663363561656638643731396563363639353466386533
35343262666564383964353631363038363235643531663830313263633661303161323166643237
66396166336362323137353839396165333936376265316461663630636532633632326336393565
38613330383064626233306166383435346531643638323563336139653537643033376434666164
30643933366631373461393533343364343266366161363961316162386236356231656662653366
62333765326262653463323131666161663334633337663431383836363962656664643033636564
61643230353764346236393664336232623636643030356339643466356566336638626536643161
34643465376633616538366332386135623764313433326262363564663332346162306136656235
65353264623239663735346166653633356333373464616433333364326530373263343231346530
37363761623535623534

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=