Ansible Role maxmind_geoip
This role installs the shell script /usr/local/sbin/update-maxmind
together with a systemd-timer. The shell script downloads the free GeoIP databases GeoLite2-ASN, GeoLite2-City and GeoLite2-Country in mmdb
-format from Maxmind to /usr/share/GeoIP/
. The script is scheduled weekly.
For Maxmind, depending on your needs, you normally run three playbooks in this particular order:
libmaxminddb
mod_maxminddb
maxmind_geoip (this role)
Mandatory Requirements
You need a (free) Maxmind license key.
Mandatory Role Variables
Variable |
Description |
---|---|
|
String. The license key from Maxmind. |
Example:
# mandatory
maxmind_geoip__lic: '1a1c5e4202784cec'