This role installs and configures Maxmind Geoipupdate.
Ansible 2.10 or newer.
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 22.04 (Jammy Jellyfish)
- Ubuntu - 24.04 (Noble Numbat)
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
geoipupdate_dependencies | yes | [cron] |
list | |
geoipupdate_version | yes | 7.1.0 |
string | |
geoipupdate_arch | yes | detected automatically | string | |
geoipupdate_path | yes | /usr/local/bin/geoipupdate |
string | |
geoipupdate_config_file | yes | /usr/local/etc/GeoIP.conf |
string | |
geoipupdate_account_id | yes | 0 |
string | |
geoipupdate_license_key | yes | 000000000000 |
string | |
geoipupdate_edition_ids | yes | [GeoLite2-Country, GeoLite2-City] |
list | Databases to install. |
geoipupdate_database_directory | yes | /usr/local/share/GeoIP |
string | |
geoipupdate_host | yes | https://updates.maxmind.com |
string | |
geoipupdate_proxy | no | string | ||
geoipupdate_proxy_user_password | no | string | ||
geoipupdate_preserve_file_times | yes | 0 |
int | |
geoipupdate_lock_file | yes | DATADIR/.geoipupdate.lock |
string | |
geoipupdate_retry_for | yes | 5m |
string | |
geoipupdate_parallelism | yes | 1 |
int | |
geoipupdate_cron_state | yes | present |
string | |
geoipupdate_cron_user | yes | root |
string | |
geoipupdate_cron_special_time | yes | weekly |
string | |
geoipupdate_cron_day | no | int | ||
geoipupdate_cron_hour | no | int | ||
geoipupdate_cron_minute | no | int | ||
geoipupdate_cron_month | no | int | ||
geoipupdate_cron_weekday | no | int |
None
- hosts: all
roles:
- ansible-role-geoipupdate
geoipupdate_account_id: 123
geoipupdate_license_key: "ABCDEF"
molecule test
MIT