mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
For docker add --blocking-io only when missing (#19171)
This commit is contained in:
parent
9f58e69d63
commit
65491cc839
1 changed files with 3 additions and 2 deletions
|
@ -355,8 +355,9 @@ class ActionModule(ActionBase):
|
||||||
# use rsync_opts to support container to override rsh options
|
# use rsync_opts to support container to override rsh options
|
||||||
if self._remote_transport in [ 'docker' ]:
|
if self._remote_transport in [ 'docker' ]:
|
||||||
if not isinstance(self._task.args.get('rsync_opts'), list):
|
if not isinstance(self._task.args.get('rsync_opts'), list):
|
||||||
self._task.args['rsync_opts'] = []
|
self._task.args['rsync_opts'] = self._task.args.get('rsync_opts', '').split(' ')
|
||||||
self._task.args['rsync_opts'].append('--blocking-io')
|
if '--blocking-io' not in self._task.args['rsync_opts']:
|
||||||
|
self._task.args['rsync_opts'].append('--blocking-io')
|
||||||
if user is not None:
|
if user is not None:
|
||||||
self._task.args['rsync_opts'].append("--rsh='%s exec -u %s -i'" % (self._docker_cmd, user))
|
self._task.args['rsync_opts'].append("--rsh='%s exec -u %s -i'" % (self._docker_cmd, user))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue