add geoip syncing to all of this

This commit is contained in:
Seth Vidal 2013-06-05 21:31:23 +00:00
parent c1a4d9889a
commit ad90b322cd
3 changed files with 14 additions and 1 deletions

View file

@ -45,6 +45,7 @@
- include: $tasks/nagios_client.yml
- include: $tasks/apache.yml
- include: $tasks/mod_wsgi.yml
- include: $tasks/geoip.yml
- include: $tasks/mirrorlist.yml

13
tasks/geoip.yml Normal file
View file

@ -0,0 +1,13 @@
---
# install python-geoIP
- name: install python-geoIP
yum: name=mod_python-geoIP state=installed
tags:
- packages
- name: push over the geoip db once
copy: src=$item dest=/usr/share/GeoIP/$item
with_fileglob: $bigfiles/hotfixes/geoip/*.dat
- name: setup cron job to suck down these files
cron: cron_file=geoip_sync name=geoip_sync state=present minute=0 hour=1 day=4 user=root

View file

@ -13,4 +13,3 @@
- config
# hotfix: hash_randomization? - to httpd?