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

geoipupdate: download dbs on install/config change

We want the GeoIP databases to be ready for use by software installed
by dependant roles; run geoipupdate when it's installed or configured.
parent cc9a1b02
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,11 @@
- name: install geoipupdate
pacman: name=geoipupdate state=present
register: installation
- name: configure geoipupdate
template: src=GeoIP.conf.j2 dest=/etc/GeoIP.conf owner=root group=root mode=0600
register: configuration
- name: create drop-in directory for geoipupdate.service
file: path=/etc/systemd/system/geoipupdate.service.d state=directory owner=root group=root mode=0755
......@@ -14,5 +16,9 @@
notify:
- daemon reload
- name: run geoipupdate after installation or configuration change
systemd: name=geoipupdate state=restarted
when: installation is changed or configuration is changed
- name: start and enable geoipupdate.timer
systemd: name=geoipupdate.timer enabled=yes state=started
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