From 34b928d28376696fd3a62bf5b7bc5316713574d6 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 14 Mar 2019 17:47:19 -0700 Subject: [PATCH] Remove conflicting urllib3 from pip in uri test. The uri test will fail on centos6 if run after a test that installs urllib3 via pip unless it is uninstalled. --- test/integration/targets/uri/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/targets/uri/tasks/main.yml b/test/integration/targets/uri/tasks/main.yml index 701d40cb80..3362632cf5 100644 --- a/test/integration/targets/uri/tasks/main.yml +++ b/test/integration/targets/uri/tasks/main.yml @@ -233,6 +233,12 @@ - result is failed when: result is not skipped +- name: uninstall conflicting urllib3 pip package + pip: + name: urllib3 + state: absent + when: not ansible_python.has_sslcontext and not is_ubuntu_precise|bool + - name: install OS packages that are needed for SNI on old python package: name: "{{ item }}"