|
|
@ -498,12 +498,13 @@ class PlayContextSpec(Spec):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def ssh_args(self):
|
|
|
|
def ssh_args(self):
|
|
|
|
|
|
|
|
local_vars = self._task_vars.get("hostvars", {}).get(self._inventory_name, {})
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
mitogen.core.to_text(term)
|
|
|
|
mitogen.core.to_text(term)
|
|
|
|
for s in (
|
|
|
|
for s in (
|
|
|
|
C.config.get_config_value("ssh_args", plugin_type="connection", plugin_name="ssh", variables=self._task_vars.get("vars", {})),
|
|
|
|
C.config.get_config_value("ssh_args", plugin_type="connection", plugin_name="ssh", variables=local_vars),
|
|
|
|
C.config.get_config_value("ssh_common_args", plugin_type="connection", plugin_name="ssh", variables=self._task_vars.get("vars", {})),
|
|
|
|
C.config.get_config_value("ssh_common_args", plugin_type="connection", plugin_name="ssh", variables=local_vars),
|
|
|
|
C.config.get_config_value("ssh_extra_args", plugin_type="connection", plugin_name="ssh", variables=self._task_vars.get("vars", {}))
|
|
|
|
C.config.get_config_value("ssh_extra_args", plugin_type="connection", plugin_name="ssh", variables=local_vars)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
for term in ansible.utils.shlex.shlex_split(s or '')
|
|
|
|
for term in ansible.utils.shlex.shlex_split(s or '')
|
|
|
|
]
|
|
|
|
]
|
|
|
@ -738,12 +739,13 @@ class MitogenViaSpec(Spec):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def ssh_args(self):
|
|
|
|
def ssh_args(self):
|
|
|
|
|
|
|
|
local_vars = self._task_vars.get("hostvars", {}).get(self._inventory_name, {})
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
mitogen.core.to_text(term)
|
|
|
|
mitogen.core.to_text(term)
|
|
|
|
for s in (
|
|
|
|
for s in (
|
|
|
|
C.config.get_config_value("ssh_args", plugin_type="connection", plugin_name="ssh", variables=self._task_vars.get("vars", {})),
|
|
|
|
C.config.get_config_value("ssh_args", plugin_type="connection", plugin_name="ssh", variables=local_vars),
|
|
|
|
C.config.get_config_value("ssh_common_args", plugin_type="connection", plugin_name="ssh", variables=self._task_vars.get("vars", {})),
|
|
|
|
C.config.get_config_value("ssh_common_args", plugin_type="connection", plugin_name="ssh", variables=local_vars),
|
|
|
|
C.config.get_config_value("ssh_extra_args", plugin_type="connection", plugin_name="ssh", variables=self._task_vars.get("vars", {}))
|
|
|
|
C.config.get_config_value("ssh_extra_args", plugin_type="connection", plugin_name="ssh", variables=local_vars)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
for term in ansible.utils.shlex.shlex_split(s)
|
|
|
|
for term in ansible.utils.shlex.shlex_split(s)
|
|
|
|
if s
|
|
|
|
if s
|
|
|
|