Handle hosts behing jumphost better
This commit is contained in:
parent
c8918b1a35
commit
02cddddc5c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue