Files
infrastructure/roles/geoipupdate/tasks/main.yml

15 lines
526 B
YAML

- 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: Run geoipupdate after installation or configuration change
systemd_service: name=geoipupdate state=restarted
when: installation is changed or configuration is changed
- name: Start and enable geoipupdate.timer
systemd_service: name=geoipupdate.timer enabled=yes state=started