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?