ansible/tasks/geoip.yml

14 lines
432 B
YAML

---
# install python-geoIP
- name: install python-GeoIP
yum: name=python-GeoIP state=installed
tags:
- packages
- name: push over the geoip db once
copy: src=$item dest=/usr/share/GeoIP/
with_fileglob: $bigfiles/geoip/*.dat
- name: geoip syncing script via cron
cron: cron_file=geoip_sync name=geoip_sync state=present minute=0 hour=1 day=4 user=root job="/usr/local/bin/syncFiles.sh bigfiles/geoip /usr/share/GeoIP"