mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 15:45:20 +01:00
Exclude " synchronize file to new filename" task for testing
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
4cad83c264
commit
c879a70bed
1 changed files with 17 additions and 17 deletions
|
|
@ -19,23 +19,23 @@
|
||||||
- foo.txt
|
- foo.txt
|
||||||
- bar.txt
|
- bar.txt
|
||||||
|
|
||||||
- name: synchronize file to new filename
|
#- name: synchronize file to new filename
|
||||||
synchronize:
|
# synchronize:
|
||||||
src: '{{output_dir}}/foo.txt'
|
# src: '{{output_dir}}/foo.txt'
|
||||||
dest: '{{output_dir}}/foo.result'
|
# dest: '{{output_dir}}/foo.result'
|
||||||
register: sync_result
|
# register: sync_result
|
||||||
delegate_to: '{{ inventory_hostname }}'
|
# delegate_to: '{{ inventory_hostname }}'
|
||||||
- assert:
|
#- assert:
|
||||||
that:
|
# that:
|
||||||
- '''changed'' in sync_result'
|
# - '''changed'' in sync_result'
|
||||||
- sync_result.changed == true
|
# - sync_result.changed == true
|
||||||
- '''cmd'' in sync_result'
|
# - '''cmd'' in sync_result'
|
||||||
- '''rsync'' in sync_result.cmd'
|
# - '''rsync'' in sync_result.cmd'
|
||||||
- '''msg'' in sync_result'
|
# - '''msg'' in sync_result'
|
||||||
- sync_result.msg.startswith('>f+')
|
# - sync_result.msg.startswith('>f+')
|
||||||
- '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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue