mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding a new test for the synchronize module to test rsync_path
This commit is contained in:
parent
e54320412d
commit
45237f270d
1 changed files with 6 additions and 0 deletions
|
@ -56,3 +56,9 @@
|
||||||
- "sync_result.results|length == 2"
|
- "sync_result.results|length == 2"
|
||||||
- "sync_result.results[0].msg.endswith('+ foo.txt\n')"
|
- "sync_result.results[0].msg.endswith('+ foo.txt\n')"
|
||||||
- "sync_result.results[1].msg.endswith('+ bar.txt\n')"
|
- "sync_result.results[1].msg.endswith('+ bar.txt\n')"
|
||||||
|
|
||||||
|
- name: synchronize files using rsync_path (issue#7182)
|
||||||
|
synchronize: src={{output_dir}}/foo.txt dest={{output_dir}}/foo.rsync_path rsync_path="sudo rsync"
|
||||||
|
register: sync_result
|
||||||
|
|
||||||
|
- debug: var=sync_result
|
||||||
|
|
Loading…
Reference in a new issue