Use python3 after RHEL8

This commit is contained in:
Stephen Smoogen 2020-05-20 15:36:13 -04:00
parent fa95664907
commit 055dd98c22

View file

@ -4,6 +4,13 @@
package: name=python-GeoIP state=present
tags:
- packages
when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8) or (ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora')
- name: install python3-GeoIP
package: name=python3-GeoIP state=present
tags:
- packages
when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8) or (ansible_distribution_major_version|int >= 30 and ansible_distribution == 'Fedora')
- name: push over the geoip db once
copy: src={{ item }} dest=/usr/share/GeoIP/