2019-08-12 14:32:48 +00:00
|
|
|
# _execute_module() would unconditionally delete shell.tmpdir without
|
|
|
|
# respecting the passed in 'tmp' parameter on Ansible 2.3.
|
|
|
|
|
|
|
|
- name: regression/issue_558_unarchive_failed.yml
|
|
|
|
hosts: test-targets
|
|
|
|
tasks:
|
2022-09-12 17:46:21 +00:00
|
|
|
- name: Cleanup /tmp/foo
|
|
|
|
file:
|
|
|
|
path: /tmp/foo
|
|
|
|
state: absent
|
|
|
|
- name: Create /tmp/foo
|
|
|
|
file:
|
|
|
|
path: /tmp/foo
|
|
|
|
state: directory
|
|
|
|
- name: Unarchive unarchive_test.tar
|
|
|
|
unarchive:
|
2019-08-12 14:32:48 +00:00
|
|
|
src: "{{git_basedir}}/tests/data/unarchive_test.tar"
|
|
|
|
dest: /tmp/foo
|
2019-08-12 14:51:35 +00:00
|
|
|
# garbage doesn't work with BSD tar
|
|
|
|
when: ansible_system != 'Darwin'
|
2021-11-02 20:07:28 +00:00
|
|
|
tags:
|
|
|
|
- issue_558
|