Fix unarchive integration test on CentOS 6 (#66362)

* Cleanup packages added for Python TLS support
pull/66379/head
Sam Doran 5 years ago committed by GitHub
parent 9922014441
commit 22be69188b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,9 @@
- name: remove python TLS packages
yum:
name:
- python-urllib3
- python2-ndg_httpsclient
- pyOpenSSL
- 'python-backports*'
- python-six
state: absent

@ -230,7 +230,7 @@
src: "{{ remote_tmp_dir }}/unarchive-00.{{item}}"
dest: "{{ remote_tmp_dir }}/exclude-{{item}}"
remote_src: yes
exclude:
exclude:
- "exclude/exclude-*.txt"
- "other/exclude-1.ext"
with_items:
@ -633,6 +633,17 @@
- name: create our unarchive destination
file: path={{remote_tmp_dir}}/test-unarchive-tar-gz state=directory
- name: Install packages to make TLS connections work on CentOS 6
yum:
name:
- python-urllib3
- python2-ndg_httpsclient
state: present
when:
- ansible_facts.distribution == 'CentOS'
- not ansible_facts.python.has_sslcontext
notify: remove python TLS packages
- name: unarchive a tar from an URL
unarchive:
src: "https://releases.ansible.com/ansible/ansible-latest.tar.gz"

Loading…
Cancel
Save