mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-10 06:35:27 +01:00
Add example to documentation
This commit is contained in:
parent
d0ea1143ee
commit
6e7c537956
1 changed files with 11 additions and 0 deletions
|
|
@ -360,6 +360,17 @@ EXAMPLES = r'''
|
|||
src: /tmp/localpath/
|
||||
dest: /tmp/remotepath
|
||||
rsync_path: /usr/gnu/bin/rsync
|
||||
|
||||
# Source files from multiple folders and merge them on the remote
|
||||
# Files of the same name in /tmp/path_c/ will take precedence over those in /tmp/path_b/, and same for path_b to path_a
|
||||
- name: Copy files from multiple folders and merge them into dest
|
||||
ansible.posix.synchronize:
|
||||
src:
|
||||
- /tmp/path_a/
|
||||
- /tmp/path_b/
|
||||
- /tmp/path_c/
|
||||
dest: /tmp/dest/
|
||||
recursive: True
|
||||
'''
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue