1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
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