Ansible Role linuxfabrik.lfops.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.
Tags¶
maxmind_geoip
- Deploys
/usr/local/sbin/update-maxmind. - Triggers: none.
Mandatory Role Variables¶
maxmind_geoip__lic
- The license key from Maxmind.
- Type: String.
Example:
# mandatory
maxmind_geoip__lic: '1a1c5e4202784cec'