Fix unarchive integration test on CentOS 6 (#66362)
* Cleanup packages added for Python TLS support
This commit is contained in:
parent
9922014441
commit
22be69188b
2 changed files with 21 additions and 1 deletions
9
test/integration/targets/unarchive/handlers/main.yml
Normal file
9
test/integration/targets/unarchive/handlers/main.yml
Normal file
|
@ -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…
Reference in a new issue