diff --git a/test/integration/targets/setup_docker/tasks/main.yml b/test/integration/targets/setup_docker/tasks/main.yml index 20096115576..8e839922858 100644 --- a/test/integration/targets/setup_docker/tasks/main.yml +++ b/test/integration/targets/setup_docker/tasks/main.yml @@ -2,6 +2,7 @@ is_rhel: "{{ ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora' }}" is_rhel6: "{{ is_rhel and ansible_distribution_major_version == '6' }}" is_rhel7: "{{ is_rhel and ansible_distribution_major_version == '7' }}" + is_ubuntu14: "{{ ansible_distribution == 'Ubuntu' and ansible_distribution_major_version == '14' }}" block: - include_tasks: "{{ lookup('first_found', params) }}" vars: @@ -12,7 +13,10 @@ - name: Install Python requirements vars: - extra_packages: "{{ '' if not is_rhel7 else ',requests==2.6.0' }}" + # Inttalling requests >=2.12.0 on Ubuntu 14.04 breaks certificate validation. We restrict to an older version + # to ensure out get_url tests work out fine. This is only an issue if pyOpenSSL is also installed. + # Not sure why RHEL7 needs this specific version + extra_packages: "{{ '' if not (is_rhel7 or is_ubuntu14) else ',requests==2.6.0' }}" pip: state: present name: 'docker{{ extra_packages }}'