1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix uri integration test uninstall of urllib3. (#53834)

This commit is contained in:
Matt Clay 2019-03-14 21:52:03 -07:00 committed by GitHub
parent 1e595493d9
commit 17ed39a009
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -233,11 +233,18 @@
- result is failed
when: result is not skipped
- name: check if urllib3 is installed as an OS package
package:
name: "{{ uri_os_packages[ansible_os_family].urllib3 }}"
check_mode: yes
when: not ansible_python.has_sslcontext and not is_ubuntu_precise|bool and uri_os_packages[ansible_os_family].urllib3|default
register: urllib3
- name: uninstall conflicting urllib3 pip package
pip:
name: urllib3
state: absent
when: not ansible_python.has_sslcontext and not is_ubuntu_precise|bool
when: not ansible_python.has_sslcontext and not is_ubuntu_precise|bool and uri_os_packages[ansible_os_family].urllib3|default and urllib3.changed
- name: install OS packages that are needed for SNI on old python
package:

View file

@ -1,5 +1,6 @@
uri_os_packages:
RedHat:
urllib3: python-urllib3
step1:
- python-pyasn1
- pyOpenSSL
@ -16,4 +17,4 @@ uri_os_packages:
step2:
- libffi-dev
- libssl-dev
- python-dev
- python-dev