Handle issue caused by pip installed setuptools (Fedora)
setuptools is being installed by pip in the image. We need it to be used by sealert which looks for pkg_resources in Python3 pythonpath. setuptools is being excluded at /etc/dnf/dnf.conf. This patch removes and reinstall python3-setuptools. Change-Id: I581c469853ea28e0a75654c5d0f0a5cbdd98d257
This commit is contained in:
parent
f6fc033079
commit
ae8e9225e2
@ -12,6 +12,23 @@
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution == "Fedora"
|
||||
|
||||
- name: Remove excludes from /etc/dnf/dnf.conf (Fedora)
|
||||
lineinfile:
|
||||
path: /etc/dnf/dnf.conf
|
||||
state: absent
|
||||
regexp: '^exclude='
|
||||
become: true
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution == "Fedora"
|
||||
|
||||
- name: Reinstall python3-setuptools (Fedora)
|
||||
command: "dnf -y reinstall python3-setuptools"
|
||||
become: true
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution == "Fedora"
|
||||
|
||||
- name: Clean-up system state (non Fedora)
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user