mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add geoip syncing to all of this
This commit is contained in:
@@ -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
13
tasks/geoip.yml
Normal 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
|
||||
@@ -13,4 +13,3 @@
|
||||
- config
|
||||
|
||||
|
||||
# hotfix: hash_randomization? - to httpd?
|
||||
|
||||
Reference in New Issue
Block a user