From ad90b322cd7fbc32f0c25e14daf4279aeff8e28b Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Wed, 5 Jun 2013 21:31:23 +0000 Subject: [PATCH] add geoip syncing to all of this --- playbooks/groups/mirrorlist.yml | 1 + tasks/geoip.yml | 13 +++++++++++++ tasks/mod_wsgi.yml | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tasks/geoip.yml diff --git a/playbooks/groups/mirrorlist.yml b/playbooks/groups/mirrorlist.yml index d3290dc1bd..f14ece5da6 100644 --- a/playbooks/groups/mirrorlist.yml +++ b/playbooks/groups/mirrorlist.yml @@ -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 diff --git a/tasks/geoip.yml b/tasks/geoip.yml new file mode 100644 index 0000000000..5b20f678b7 --- /dev/null +++ b/tasks/geoip.yml @@ -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 diff --git a/tasks/mod_wsgi.yml b/tasks/mod_wsgi.yml index ffb2030746..fe3edf08c8 100644 --- a/tasks/mod_wsgi.yml +++ b/tasks/mod_wsgi.yml @@ -13,4 +13,3 @@ - config -# hotfix: hash_randomization? - to httpd?