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
|
- packages
|
||||||
when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8)
|
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/
|
copy: src={{ item }} dest=/usr/share/GeoIP/
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ bigfiles }}/geoip/*.dat"
|
- "{{ bigfiles }}/geoip/*.dat"
|
||||||
tags:
|
tags:
|
||||||
- geoip
|
- geoip
|
||||||
|
|
||||||
- name: geoip syncing script via cron
|
- name: push over the newer geoip db
|
||||||
copy: src=geoip_sync dest=/etc/cron.d/geoip_sync mode=0644
|
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
|
||||||
|
|
|
@ -26,6 +26,23 @@
|
||||||
tags:
|
tags:
|
||||||
- mirrorlist_proxy
|
- mirrorlist_proxy
|
||||||
|
|
||||||
|
- name: make sure the /usr/share/GeoIP/ directory exists
|
||||||
|
file:
|
||||||
|
path: /usr/share/GeoIP/
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
tags:
|
||||||
|
- mirrorlist_proxy
|
||||||
|
|
||||||
|
- name: push over the newer geoip db
|
||||||
|
copy: src={{ item }} dest=/usr/share/GeoIP/
|
||||||
|
with_fileglob:
|
||||||
|
- "{{ bigfiles }}/geoip/*.mmdb"
|
||||||
|
tags:
|
||||||
|
- mirrorlist_proxy
|
||||||
|
|
||||||
- name: make sure mirrormanager user can write new protobuf based cache file
|
- name: make sure mirrormanager user can write new protobuf based cache file
|
||||||
file: dest="{{item}}" owner=mirrormanager group=mirrormanager
|
file: dest="{{item}}" owner=mirrormanager group=mirrormanager
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue