Added: geoip copy to mirrorlist_proxy. Changed: geoip to not copy over broken sync script. Fixed: bad geolocation from 2018
This commit is contained in:
parent
a8851731d0
commit
5405fa546c
2 changed files with 38 additions and 3 deletions
|
@ -12,12 +12,30 @@
|
|||
- packages
|
||||
when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8)
|
||||
|
||||
- name: push over the geoip db once
|
||||
- name: make sure the /usr/share/GeoIP/ directory exists
|
||||
file:
|
||||
path: /usr/share/GeoIP/
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
tags:
|
||||
- geoip
|
||||
|
||||
- name: push over the older geoip db
|
||||
copy: src={{ item }} dest=/usr/share/GeoIP/
|
||||
with_fileglob:
|
||||
- "{{ bigfiles }}/geoip/*.dat"
|
||||
tags:
|
||||
- geoip
|
||||
|
||||
- name: geoip syncing script via cron
|
||||
copy: src=geoip_sync dest=/etc/cron.d/geoip_sync mode=0644
|
||||
- name: push over the newer geoip db
|
||||
copy: src={{ item }} dest=/usr/share/GeoIP/
|
||||
with_fileglob:
|
||||
- "{{ bigfiles }}/geoip/*.mmdb"
|
||||
tags:
|
||||
- geoip
|
||||
|
||||
# comment out 2022-05-19. Script does not work since 2018.
|
||||
#- name: geoip syncing script via cron
|
||||
# copy: src=geoip_sync dest=/etc/cron.d/geoip_sync mode=0644
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue