Allow SSH synchronization between Docker containers

pull/65698/merge
Nabil BENDAFI 6 years ago committed by ansibot
parent fb87f6f502
commit 1c15a485c2

@ -391,7 +391,7 @@ class ActionModule(ActionBase):
# If launching synchronize against docker container
# use rsync_opts to support container to override rsh options
if self._remote_transport in ['docker', 'buildah']:
if self._remote_transport in ['docker', 'buildah'] and not use_delegate:
# Replicate what we do in the module argumentspec handling for lists
if not isinstance(_tmp_args.get('rsync_opts'), MutableSequence):
tmp_rsync_opts = _tmp_args.get('rsync_opts', [])

Loading…
Cancel
Save