mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 11:43:10 +00:00
Assert things against the recursive copy result to make sure it did something
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user