mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Adding a persistent connection utility
This commit is contained in:
parent
0b96d61162
commit
26ec2ecfce
6 changed files with 428 additions and 4 deletions
|
@ -145,9 +145,9 @@ class Connection(ConnectionBase):
|
|||
proxy_command = None
|
||||
# Parse ansible_ssh_common_args, specifically looking for ProxyCommand
|
||||
ssh_args = [
|
||||
getattr(self._play_context, 'ssh_extra_args', ''),
|
||||
getattr(self._play_context, 'ssh_common_args', ''),
|
||||
getattr(self._play_context, 'ssh_args', ''),
|
||||
getattr(self._play_context, 'ssh_extra_args', '') or '',
|
||||
getattr(self._play_context, 'ssh_common_args', '') or '',
|
||||
getattr(self._play_context, 'ssh_args', '') or '',
|
||||
]
|
||||
if ssh_args is not None:
|
||||
args = self._split_ssh_args(' '.join(ssh_args))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue