Skip to content
Snippets Groups Projects
Verified Commit 30b0520e authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

geo_dns: add geoipupdate.service drop-in to reload

When the GeoIP databases get refreshed (weekly), we want PowerDNS to
reload them. Do this by running pdns_control reload in ExecStartPost.
parent 556a4f0b
No related branches found
No related tags found
No related merge requests found
Pipeline #25250 passed
[Service]
ExecStartPost=+-/usr/bin/pdns_control reload
......@@ -8,6 +8,12 @@
- {src: geo.yml.j2, dest: geo.yml}
notify: restart powerdns
- name: create drop-in directory for geoipupdate
file: path=/etc/systemd/system/geoipupdate.service.d state=directory owner=root group=root mode=0755
- name: install drop-in snippet for geoipupdate
copy: src=geoipupdate-pdns-reload.conf dest=/etc/systemd/system/geoipupdate.service.d/pdns-reload.conf owner=root group=root mode=0644
- name: open powerdns ipv4 port for monitoring.archlinux.org
ansible.posix.firewalld: zone=wireguard state=enabled permanent=true immediate=yes
rich_rule="rule family=ipv4 source address={{ hostvars['monitoring.archlinux.org']['wireguard_address'] }} port protocol=tcp port=8081 accept"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment