mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added suport rsync protocol (#12197)
* added suport rsync protocol * use startswith method for safety
This commit is contained in:
parent
d29b833cb1
commit
65856f2231
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ class ActionModule(ActionBase):
|
|||
''' formats rsync rsh target, escaping ipv6 addresses if needed '''
|
||||
|
||||
user_prefix = ''
|
||||
|
||||
if path.startswith('rsync://'):
|
||||
return path
|
||||
|
||||
if user:
|
||||
user_prefix = '%s@' % (user, )
|
||||
|
||||
|
|
Loading…
Reference in a new issue