Use python3 after RHEL8
This commit is contained in:
parent
fa95664907
commit
055dd98c22
1 changed files with 7 additions and 0 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue