An Ansible Role that installs and configures the Maxmind GeoIP databases
None
None
---
- hosts: all
sudo: yes
roles:
- { role: jgeusebroek.maxmind-geoip, tags: ["maxmind-geoip"] }
Below are configurable variables with there default values.
# Debian
maxmind_update_package_debian:
'http://ftp.nl.debian.org/debian/pool/contrib/g/geoipupdate/geoipupdate_2.5.0-1~bpo9+1_amd64.deb'
# Credentials (these defaults are for the free databases)
maxmind_update_userid: '999999'
maxmind_update_licensekey: '000000000000'
# These are the free databases, should you have a subscription change these values
maxmind_update_product_ids:
# - GeoLite2-City
# - GeoLite2-Country
- GeoLite-Legacy-IPv6-City
- GeoLite-Legacy-IPv6-Country
- 506
- 517
- 533
NOTE: Debian Jessie only supports the legacy databases, which is why I have those as default.
# Every tuesday the databases get updated at Maxmind
# The free databases are only updated the first tuesday of the month
maxmind_cron_weekday: 2
maxmind_cron_hour: 6
maxmind_cron_minute: 13
# Optional e-mail adres to send cron results
maxmind_cron_email: ""
MIT / BSD
2015 - 2018 by Jeroen Geusebroek.