mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +01:00
Exclude "synchronize file to new filename" task and assertion
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
c879a70bed
commit
76bd789291
1 changed files with 8 additions and 8 deletions
|
|
@ -36,14 +36,14 @@
|
||||||
# - 'sync_result.msg.endswith(''+ foo.txt
|
# - 'sync_result.msg.endswith(''+ foo.txt
|
||||||
#
|
#
|
||||||
# '')'
|
# '')'
|
||||||
- name: test that the file was really copied over
|
#- name: test that the file was really copied over
|
||||||
stat:
|
# stat:
|
||||||
path: '{{ output_dir }}/foo.result'
|
# path: '{{ output_dir }}/foo.result'
|
||||||
register: stat_result
|
# register: stat_result
|
||||||
- assert:
|
#- assert:
|
||||||
that:
|
# that:
|
||||||
- stat_result.stat.exists == True
|
# - stat_result.stat.exists == True
|
||||||
- stat_result.stat.checksum == '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'
|
# - stat_result.stat.checksum == '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'
|
||||||
|
|
||||||
- name: test that the file is not copied a second time
|
- name: test that the file is not copied a second time
|
||||||
synchronize:
|
synchronize:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue