Skip to content

An Ansible Role that installs and configures the Maxmind GeoIP databases

Notifications You must be signed in to change notification settings

sharpkids/ansible-role-maxmind-geoip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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: ""

License

MIT / BSD

Author Information

2015 - 2018 by Jeroen Geusebroek.

About

An Ansible Role that installs and configures the Maxmind GeoIP databases

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%