23 lines
444 B
YAML
23 lines
444 B
YAML
|
|
---
|
||
|
|
|
||
|
|
- name: Install components
|
||
|
|
become: yes
|
||
|
|
package:
|
||
|
|
name: "{{ item }}"
|
||
|
|
state: present
|
||
|
|
loop:
|
||
|
|
- geoip
|
||
|
|
- geoip-database
|
||
|
|
- geoip-database-extra
|
||
|
|
- libmaxminddb
|
||
|
|
|
||
|
|
# This is a hack while geoip-database only provides the legacy version.
|
||
|
|
- name: Ensure GeoIP2 database is present
|
||
|
|
become: yes
|
||
|
|
file:
|
||
|
|
path: /usr/share/GeoIP/GeoIP2.mmdb
|
||
|
|
owner: root
|
||
|
|
group: root
|
||
|
|
mode: 0755
|
||
|
|
state: file
|