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

pull/53837/head
Matt Clay 6 years ago committed by GitHub
parent 1e595493d9
commit 17ed39a009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

@ -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

Loading…
Cancel
Save