/ansible-role-maxmind-geoip

An Ansible Role that installs and configures the Maxmind GeoIP databases

Primary LanguageJinja

Build Status Ansible Galaxy

Ansible role: maxmind-geoip

An Ansible Role that installs and configures the Maxmind GeoIP databases

Requirements

None

Dependencies

None

Example Playbook

---
- hosts: all
  sudo: yes

  roles:
     - { role: jgeusebroek.maxmind-geoip, tags: ["maxmind-geoip"] }

Example Variables

Below are configurable variables with their 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

# Every tuesday the databases get updated at Maxmind
# The free databases are only updated on 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: ""

License

MIT / BSD

Author Information

2015 - 2019 by Jeroen Geusebroek.