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

Assert things against the recursive copy result to make sure it did something

This commit is contained in:
James Cammarata 2016-02-23 16:25:43 -05:00
parent 34541b4e5e
commit 9de24a3735

View file

@ -117,6 +117,10 @@
register: recursive_copy_result
- debug: var=recursive_copy_result
- name: assert that the recursive copy did something
assert:
that:
- "recursive_copy_result|changed"
- name: check that a file in a directory was transferred
stat: path={{output_dir}}/sub/subdir/bar.txt