Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boutetnico/ansible-role-geoipupdate

Install and configure Maxmind Geoipupdate with Ansible.
https://github.com/boutetnico/ansible-role-geoipupdate

ansible debian geoip geoipupdate maxmind maxmind-geoipupdate ubuntu

Last synced: about 4 hours ago
JSON representation

Install and configure Maxmind Geoipupdate with Ansible.

Awesome Lists containing this project

README

        

[![tests](https://github.com/boutetnico/ansible-role-geoipupdate/workflows/Test%20ansible%20role/badge.svg)](https://github.com/boutetnico/ansible-role-geoipupdate/actions?query=workflow%3A%22Test+ansible+role%22)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-boutetnico.geoipupdate-blue.svg)](https://galaxy.ansible.com/boutetnico/geoipupdate)

ansible-role-geoipupdate
========================

This role installs and configures [Maxmind Geoipupdate](https://github.com/maxmind/geoipupdate).

Requirements
------------

Ansible 2.10 or newer.

Supported Platforms
-------------------

- [Debian - 11 (Bullseye)](https://wiki.debian.org/DebianBullseye)
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [Ubuntu - 22.04 (Jammy Jellyfish)](http://releases.ubuntu.com/22.04/)
- [Ubuntu - 24.04 (Noble Numbat)](http://releases.ubuntu.com/24.04/)

Role Variables
--------------

| Variable | Required | Default | Choices | Comments |
|---------------------------------|----------|-------------------------------------|-----------|-----------------------------|
| geoipupdate_dependencies | yes | `[cron]` | list | |
| geoipupdate_version | yes | `7.0.1` | 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 | `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_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](https://github.com/boutetnico)