mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add a check that unarchive works with complex_args
This commit is contained in:
@@ -89,6 +89,20 @@
|
||||
- "unarchive02c.changed == false"
|
||||
- "unarchive02c.skipped == true"
|
||||
|
||||
- name: unarchive a tar.gz file with creates over an existing file using complex_args
|
||||
unarchive:
|
||||
src: "{{output_dir}}/test-unarchive.tar.gz"
|
||||
dest: "{{output_dir | expanduser}}/test-unarchive-tar-gz"
|
||||
copy: no
|
||||
creates: "{{output_dir}}/test-unarchive-tar-gz/foo-unarchive.txt"
|
||||
register: unarchive02c
|
||||
|
||||
- name: verify that the file was not marked as changed
|
||||
assert:
|
||||
that:
|
||||
- "unarchive02c.changed == false"
|
||||
- "unarchive02c.skipped == true"
|
||||
|
||||
- name: remove our tar.gz unarchive destination
|
||||
file: path={{output_dir}}/test-unarchive-tar-gz state=absent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user