Handle hosts behing jumphost better

This commit is contained in:
Timo Makinen 2025-06-18 10:05:25 +00:00
parent c8918b1a35
commit 02cddddc5c

View file

@ -146,7 +146,7 @@
port: 22
state: started
timeout: 1200
delegate_to: localhost
delegate_to: "{{ ssh_jumphost | default('localhost') }}"
when: inventory_hostname not in result.list_vms
- name: Get SSH public keys from new host
@ -156,7 +156,7 @@
- -t
- ed25519
- "{{ inventory_hostname }}"
delegate_to: localhost
delegate_to: "{{ ssh_jumphost | default('localhost') }}"
register: hostkeys
when: inventory_hostname not in result.list_vms