1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add a check that unarchive works with complex_args

This commit is contained in:
Toshio Kuratomi 2015-01-14 13:03:21 -08:00
parent 6e6d291f59
commit ee469c2ab1

View file

@ -89,6 +89,20 @@
- "unarchive02c.changed == false" - "unarchive02c.changed == false"
- "unarchive02c.skipped == true" - "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 - name: remove our tar.gz unarchive destination
file: path={{output_dir}}/test-unarchive-tar-gz state=absent file: path={{output_dir}}/test-unarchive-tar-gz state=absent