Added private key file to ssh bastion conf
This commit is contained in:
parent
ecb6dc3679
commit
57e12ca522
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ Host {{ bastion_ip }}
|
||||||
ControlPersist 5m
|
ControlPersist 5m
|
||||||
|
|
||||||
Host {{ vars['hosts'] }}
|
Host {{ vars['hosts'] }}
|
||||||
ProxyCommand ssh -W %h:%p {{ real_user }}@{{ bastion_ip }}
|
ProxyCommand ssh -W %h:%p {{ real_user }}@{{ bastion_ip }} {{ '-i %s' %ansible_ssh_private_key_file if ansible_ssh_private_key_file is defined else ''}}
|
||||||
StrictHostKeyChecking no
|
StrictHostKeyChecking no
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue