From 1c15a485c26ebe56301ae3abb0f870d4522901d0 Mon Sep 17 00:00:00 2001 From: Nabil BENDAFI Date: Tue, 10 Dec 2019 17:34:11 +0100 Subject: [PATCH] Allow SSH synchronization between Docker containers --- lib/ansible/plugins/action/synchronize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/synchronize.py b/lib/ansible/plugins/action/synchronize.py index 077de34b0fa..527c72d423f 100644 --- a/lib/ansible/plugins/action/synchronize.py +++ b/lib/ansible/plugins/action/synchronize.py @@ -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', [])