The undocumented 'tmp' parameter controls whether _execute_module() would delete anything on 2.3, so mimic that. This means _execute_remove_stat() calls will not blow away the temp directory, which broke the unarchive plugin.new-serialization
parent
0c1d882547
commit
8dfb3966df
@ -0,0 +1,11 @@
|
||||
# _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:
|
||||
- file: state=absent path=/tmp/foo
|
||||
- file: state=directory path=/tmp/foo
|
||||
- unarchive:
|
||||
src: "{{git_basedir}}/tests/data/unarchive_test.tar"
|
||||
dest: /tmp/foo
|
Binary file not shown.
Loading…
Reference in New Issue