Ansible Role mod_maxminddb
This role downloads, compiles and installs the Maxmind module mod_maxminddb for Apache httpd (/usr/lib64/httpd/modules/mod_maxminddb.so
).
For Maxmind, depending on your needs, you normally run three playbooks in this particular order:
libmaxminddb
mod_maxminddb (this role)
maxmind_geoip
Mandatory Requirements
Apache has to be installed and at least one LoadModule
directive already has to exist, otherwise compile might fail. If you get apxs:Error: Activation failed for custom /etc/httpd/conf/httpd.conf file..
, apxs:Error: At least one 'LoadModule' directive already has to exist..
, check if /usr/lib64/httpd/modules/mod_maxminddb.so
has been built (this is the reason why errors are ignored - the module is compiled anyway).
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
Path and filename to place the new |
|
|
String. The version to install. |
|
mod_maxminddb:
# optional
mod_maxminddb__apache_conf_modules_d: '/etc/httpd/conf-available/mod_maxminddb.conf'
mod_maxminddb__version: '1.2.0'