Skip to content

Commit 1dca6bc

Browse files
committed
packer: show ssh command to builder vm
avoids loading the temporary inventory produced by tofu
1 parent b4c64c4 commit 1dca6bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ansible/fatimage.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
- name: Report inventory groups
1111
ansible.builtin.debug:
1212
var: group_names
13+
- name: Report ssh command to connect
14+
ansible.builtin.debug:
15+
msg: >
16+
connect to builder machine using:
17+
ssh {% if ansible_ssh_port | default(false) %}-p {{ ansible_ssh_port }}{% endif %}
18+
{% if ansible_ssh_private_key_file | default(false) %} -i {{ ansible_ssh_private_key_file }}{% endif %}
19+
{{ ansible_ssh_common_args | default('') }}
20+
{{ ansible_ssh_extra_args | default('') }}
21+
-o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null
22+
{{ ansible_user }}@{{ ansible_host }}
1323
1424
- name: Run pre.yml hook
1525
vars:

0 commit comments

Comments
 (0)