Cascade ssh_*args configurations in synchronize instead of limiting to just ssh_args. See https://github.com/ansible/ansible-modules-core/issues/3370
This commit is contained in:
parent
edab8d338d
commit
bce79c67c3
1 changed files with 6 additions and 1 deletions
|
@ -318,7 +318,12 @@ class ActionModule(ActionBase):
|
||||||
self._task.args['rsync_path'] = '"%s"' % rsync_path
|
self._task.args['rsync_path'] = '"%s"' % rsync_path
|
||||||
|
|
||||||
if use_ssh_args:
|
if use_ssh_args:
|
||||||
self._task.args['ssh_args'] = C.ANSIBLE_SSH_ARGS
|
ssh_args = [
|
||||||
|
getattr(self._play_context, 'ssh_args', ''),
|
||||||
|
getattr(self._play_context, 'ssh_common_args', ''),
|
||||||
|
getattr(self._play_context, 'ssh_extra_args', ''),
|
||||||
|
]
|
||||||
|
self._task.args['ssh_args'] = ' '.join([a for a in ssh_args if a])
|
||||||
|
|
||||||
# run the module and store the result
|
# run the module and store the result
|
||||||
result.update(self._execute_module('synchronize', task_vars=task_vars))
|
result.update(self._execute_module('synchronize', task_vars=task_vars))
|
||||||
|
|
Loading…
Reference in a new issue