|
|
@ -83,6 +83,7 @@ def _connect_ssh(spec):
|
|
|
|
'ssh_path': spec['ssh_executable'],
|
|
|
|
'ssh_path': spec['ssh_executable'],
|
|
|
|
'connect_timeout': spec['ansible_ssh_timeout'],
|
|
|
|
'connect_timeout': spec['ansible_ssh_timeout'],
|
|
|
|
'ssh_args': spec['ssh_args'],
|
|
|
|
'ssh_args': spec['ssh_args'],
|
|
|
|
|
|
|
|
'ssh_debug_level': spec['mitogen_ssh_debug_level'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -260,6 +261,7 @@ def config_from_play_context(transport, inventory_name, connection):
|
|
|
|
'mitogen_docker_path': connection.mitogen_docker_path,
|
|
|
|
'mitogen_docker_path': connection.mitogen_docker_path,
|
|
|
|
'mitogen_lxc_info_path': connection.mitogen_lxc_info_path,
|
|
|
|
'mitogen_lxc_info_path': connection.mitogen_lxc_info_path,
|
|
|
|
'mitogen_machinectl_path': connection.mitogen_machinectl_path,
|
|
|
|
'mitogen_machinectl_path': connection.mitogen_machinectl_path,
|
|
|
|
|
|
|
|
'mitogen_ssh_debug_level': connection.mitogen_ssh_debug_level,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -334,6 +336,9 @@ class Connection(ansible.plugins.connection.ConnectionBase):
|
|
|
|
#: Set to 'mitogen_lxc_info_path' by on_action_run().
|
|
|
|
#: Set to 'mitogen_lxc_info_path' by on_action_run().
|
|
|
|
mitogen_machinectl_path = None
|
|
|
|
mitogen_machinectl_path = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#: Set to 'mitogen_ssh_debug_level' by on_action_run().
|
|
|
|
|
|
|
|
mitogen_ssh_debug_level = None
|
|
|
|
|
|
|
|
|
|
|
|
#: Set to 'inventory_hostname' by on_action_run().
|
|
|
|
#: Set to 'inventory_hostname' by on_action_run().
|
|
|
|
inventory_hostname = None
|
|
|
|
inventory_hostname = None
|
|
|
|
|
|
|
|
|
|
|
@ -374,6 +379,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
|
|
|
|
self.mitogen_docker_path = task_vars.get('mitogen_docker_path')
|
|
|
|
self.mitogen_docker_path = task_vars.get('mitogen_docker_path')
|
|
|
|
self.mitogen_lxc_info_path = task_vars.get('mitogen_lxc_info_path')
|
|
|
|
self.mitogen_lxc_info_path = task_vars.get('mitogen_lxc_info_path')
|
|
|
|
self.mitogen_machinectl_path = task_vars.get('mitogen_machinectl_path')
|
|
|
|
self.mitogen_machinectl_path = task_vars.get('mitogen_machinectl_path')
|
|
|
|
|
|
|
|
self.mitogen_ssh_debug_level = task_vars.get('mitogen_ssh_debug_level')
|
|
|
|
self.inventory_hostname = task_vars['inventory_hostname']
|
|
|
|
self.inventory_hostname = task_vars['inventory_hostname']
|
|
|
|
self.host_vars = task_vars['hostvars']
|
|
|
|
self.host_vars = task_vars['hostvars']
|
|
|
|
self.close(new_task=True)
|
|
|
|
self.close(new_task=True)
|
|
|
|