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¶
mod_maxminddb__apache_conf_modules_d
Path and filename to place the new
LoadModuledirective for Apache.Type: String.
Default:
'/etc/httpd/conf.modules.d/20-mod_maxminddb.conf'
mod_maxminddb__version
The version to install.
Type: String.
Default:
'1.2.0'
Example:
# optional
mod_maxminddb__apache_conf_modules_d: '/etc/httpd/conf-available/mod_maxminddb.conf'
mod_maxminddb__version: '1.2.0'