Skip to content

boutetnico/ansible-role-geoipupdate

Repository files navigation

tests Ansible Galaxy

ansible-role-geoipupdate

This role installs and configures Maxmind Geoipupdate.

Requirements

Ansible 2.10 or newer.

Supported Platforms

Role Variables

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

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - ansible-role-geoipupdate
      geoipupdate_account_id: 123
      geoipupdate_license_key: "ABCDEF"

Testing

molecule test

License

MIT

Author Information

@boutetnico