|
|
@ -23,19 +23,19 @@
|
|
|
|
delegate_to: "{{ physical_host }}"
|
|
|
|
delegate_to: "{{ physical_host }}"
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert_equal:
|
|
|
|
that: |
|
|
|
|
left: out.result
|
|
|
|
out.result == [
|
|
|
|
right: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
'kwargs': {
|
|
|
|
'kwargs': {
|
|
|
|
'check_host_keys': 'ignore',
|
|
|
|
'check_host_keys': 'ignore',
|
|
|
|
'connect_timeout': 10,
|
|
|
|
'connect_timeout': 10,
|
|
|
|
'hostname': 'alias-host',
|
|
|
|
'hostname': 'alias-host',
|
|
|
|
'identities_only': False,
|
|
|
|
'identities_only': False,
|
|
|
|
'identity_file': None,
|
|
|
|
'identity_file': null,
|
|
|
|
'password': None,
|
|
|
|
'password': null,
|
|
|
|
'port': None,
|
|
|
|
'port': null,
|
|
|
|
'python_path': None,
|
|
|
|
'python_path': null,
|
|
|
|
'ssh_args': [
|
|
|
|
'ssh_args': [
|
|
|
|
'-o',
|
|
|
|
'-o',
|
|
|
|
'ForwardAgent=yes',
|
|
|
|
'ForwardAgent=yes',
|
|
|
@ -44,9 +44,9 @@
|
|
|
|
'-o',
|
|
|
|
'-o',
|
|
|
|
'ControlPersist=60s',
|
|
|
|
'ControlPersist=60s',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'ssh_debug_level': None,
|
|
|
|
'ssh_debug_level': null,
|
|
|
|
'ssh_path': 'ssh',
|
|
|
|
'ssh_path': 'ssh',
|
|
|
|
'username': 'alias-user',
|
|
|
|
'username': 'alias-userx',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'method': 'ssh',
|
|
|
|
'method': 'ssh',
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -56,10 +56,10 @@
|
|
|
|
'connect_timeout': 10,
|
|
|
|
'connect_timeout': 10,
|
|
|
|
'hostname': 'cd-normal-alias',
|
|
|
|
'hostname': 'cd-normal-alias',
|
|
|
|
'identities_only': False,
|
|
|
|
'identities_only': False,
|
|
|
|
'identity_file': None,
|
|
|
|
'identity_file': null,
|
|
|
|
'password': None,
|
|
|
|
'password': null,
|
|
|
|
'port': None,
|
|
|
|
'port': null,
|
|
|
|
'python_path': None,
|
|
|
|
'python_path': null,
|
|
|
|
'ssh_args': [
|
|
|
|
'ssh_args': [
|
|
|
|
'-o',
|
|
|
|
'-o',
|
|
|
|
'ForwardAgent=yes',
|
|
|
|
'ForwardAgent=yes',
|
|
|
@ -68,9 +68,9 @@
|
|
|
|
'-o',
|
|
|
|
'-o',
|
|
|
|
'ControlPersist=60s',
|
|
|
|
'ControlPersist=60s',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'ssh_debug_level': None,
|
|
|
|
'ssh_debug_level': null,
|
|
|
|
'ssh_path': 'ssh',
|
|
|
|
'ssh_path': 'ssh',
|
|
|
|
'username': None,
|
|
|
|
'username': null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'method': 'ssh',
|
|
|
|
'method': 'ssh',
|
|
|
|
}
|
|
|
|
}
|
|
|
|