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:
parent
34541b4e5e
commit
9de24a3735
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue