Ansible Role libmaxminddb

This role downloads, compiles and installs libmaxminddb.

For Maxmind, depending on your needs, you normally run three playbooks in this particular order:

  1. libmaxminddb (this role)

  2. mod_maxminddb

  3. maxmind_geoip

Tags

Tag

What it does

libmaxminddb

  • install gcc httpd-devel
  • curl https://github.com/maxmind/libmaxminddb/releases/download/{{ libmaxminddb__version }}/libmaxminddb-{{ libmaxminddb__version }}.tar.gz –output /tmp/libmaxminddb-{{ libmaxminddb__version }}.tar.gz
  • copy /tmp/libmaxminddb-{{ libmaxminddb__version }}.tar.gz to the server
  • mkdir -p /tmp/libmaxminddb-{{ libmaxminddb__version }}
  • tar xfz –strip-components 1 -C /tmp/libmaxminddb-{{ libmaxminddb__version }} /tmp/libmaxminddb-{{ libmaxminddb__version }}.tar.gz
  • rm -f /tmp/libmaxminddb-{{ libmaxminddb__version }}.tar.gz
  • ./configure
  • make
  • make check
  • make install
  • Configure Dynamic Linker Run Time Bindings
  • ldconfig

Optional Role Variables

Variable

Description

Default Value

libmaxminddb__version

String. The version to install.

1.7.1

libmaxminddb:

# optional
libmaxminddb__version: '1.7.1'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich