mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
Added note about .rsync-filter files, with example
This commit is contained in:
parent
517e4af2cf
commit
b1a6bc6e7f
1 changed files with 9 additions and 0 deletions
|
@ -109,6 +109,10 @@ notes:
|
||||||
- The remote user for the dest path will always be the remote_user, not
|
- The remote user for the dest path will always be the remote_user, not
|
||||||
the sudo_user.
|
the sudo_user.
|
||||||
- Expect that dest=~/x will be ~<remote_user>/x even if using sudo.
|
- Expect that dest=~/x will be ~<remote_user>/x even if using sudo.
|
||||||
|
- To exclude files and directories from being synchronized, you may add
|
||||||
|
C(.rsync-filter) files to the source directory.
|
||||||
|
|
||||||
|
|
||||||
author: Timothy Appnel
|
author: Timothy Appnel
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -142,6 +146,11 @@ synchronize: src=some/relative/path dest=/some/absolute/path delete=yes
|
||||||
|
|
||||||
# Synchronize using an alternate rsync command
|
# Synchronize using an alternate rsync command
|
||||||
synchronize: src=some/relative/path dest=/some/absolute/path rsync_path="sudo rsync"
|
synchronize: src=some/relative/path dest=/some/absolute/path rsync_path="sudo rsync"
|
||||||
|
|
||||||
|
# Example .rsync-filter file in the source directory
|
||||||
|
- var # exclude any path whose last part is 'var'
|
||||||
|
- /var # exclude any path starting with 'var' starting at the source directory
|
||||||
|
+ /var/conf # include /var/conf even though it was previously excluded
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue