We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f82156d commit 3ac2caaCopy full SHA for 3ac2caa
roles/image_build/defaults/main.yml
@@ -32,8 +32,13 @@ image_build_builder_group_vars:
32
33
# ansible_ssh_common_args for Packer build
34
image_build_ansible_ssh_common_args: >-
35
+ {% if image_build_ssh_bastion_host is defined %}
36
'-o ProxyCommand="ssh -W %h:%p -q
37
{% if image_build_ssh_bastion_private_key_file is defined %}
38
-i {{ image_build_ssh_bastion_private_key_file }}
39
{% endif %}
- {{ image_build_ssh_bastion_username }}@{{ image_build_ssh_bastion_host }}"'
40
+ -l {{ image_build_ssh_bastion_username }}
41
+ {{ image_build_ssh_bastion_host }}"'
42
+ {% else %}
43
+ ""
44
+ {% endif %}
0 commit comments