try it this way
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
75e1108b33
commit
a3b14f235c
2 changed files with 2 additions and 2 deletions
|
@ -10,4 +10,4 @@ rm -f GeoLite2-Country-CSV.zip csvs/*
|
||||||
|
|
||||||
wget -q -T 5 -t 1 https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip
|
wget -q -T 5 -t 1 https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip
|
||||||
unzip -j GeoLite2-Country-CSV.zip -d csvs/
|
unzip -j GeoLite2-Country-CSV.zip -d csvs/
|
||||||
python geoip.py csvs/GeoLite2-Country-Blocks-IPv4.csv csvs/GeoLite2-Country-Blocks-IPv6.csv csvs/GeoLite2-Country-Locations-en.csv > /var/named/GeoIP.acl
|
geoip.py csvs/GeoLite2-Country-Blocks-IPv4.csv csvs/GeoLite2-Country-Blocks-IPv6.csv csvs/GeoLite2-Country-Locations-en.csv > /var/named/GeoIP.acl
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
- dns
|
- dns
|
||||||
|
|
||||||
- name: copy geoip.py
|
- name: copy geoip.py
|
||||||
copy: src=geoip.py dest=/var/named/geoip.py mode=0755
|
copy: src=geoip.py dest=/usr/local/bin/geoip.py mode=0755
|
||||||
notify:
|
notify:
|
||||||
- restart named
|
- restart named
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue