Skip to content
Snippets Groups Projects
Commit c22cfa25 authored by Mohamed Mehany's avatar Mohamed Mehany Committed by Matthew Mosesohn
Browse files

Added private key file to ssh bastion conf (#1563)

* Added private key file to ssh bastion conf

* Used regular if condition insted of inline conditional
parent af211b3d
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,6 @@ Host {{ bastion_ip }} ...@@ -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 }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %}
StrictHostKeyChecking no StrictHostKeyChecking no
{% endif %} {% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment