From 02cddddc5c9b9b33e8473fe1880dcaf563ff78cb Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 18 Jun 2025 10:05:25 +0000 Subject: [PATCH] Handle hosts behing jumphost better --- playbooks/include/deploy-kvm-guest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/include/deploy-kvm-guest.yml b/playbooks/include/deploy-kvm-guest.yml index e23e878..8f76d9f 100644 --- a/playbooks/include/deploy-kvm-guest.yml +++ b/playbooks/include/deploy-kvm-guest.yml @@ -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