change ssh_args/bastion configuration (#1883)

This commit is contained in:
Aivars Sterns
2017-10-27 14:18:39 +03:00
committed by Matthew Mosesohn
parent ba0a03a8ba
commit 84cf6fbe83
4 changed files with 11 additions and 7 deletions

View File

@@ -16,7 +16,5 @@ Host {{ bastion_ip }}
ControlPersist 5m
Host {{ vars['hosts'] }}
ProxyCommand ssh -W %h:%p {{ real_user }}@{{ bastion_ip }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %}
StrictHostKeyChecking no
ProxyCommand ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -W %h:%p {{ real_user }}@{{ bastion_ip }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %}
{% endif %}