Skip to content

Commit 697ebf3

Browse files
committed
Merge branch 'feat/image-build' into feat/image-build-test-workflow
2 parents 1e95ae7 + 3ac2caa commit 697ebf3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

roles/image_build/defaults/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ image_build_builder_group_vars:
3232

3333
# ansible_ssh_common_args for Packer build
3434
image_build_ansible_ssh_common_args: >-
35+
{% if image_build_ssh_bastion_host is defined %}
3536
'-o ProxyCommand="ssh -W %h:%p -q
3637
{% if image_build_ssh_bastion_private_key_file is defined %}
3738
-i {{ image_build_ssh_bastion_private_key_file }}
3839
{% endif %}
39-
{{ 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

Comments
 (0)