mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-04-10 20:49:27 -02:30
Allow connecting to bastion via non-standard SSH port (#7396)
* Allow connecting to bastion via non-standard port
* Fix bastion connection when ansible_port is not provided
(cherry picked from commit 6fa3565dac)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
44d1f83ee9
commit
65aa9213d4
@@ -1,7 +1,8 @@
|
||||
---
|
||||
- name: set bastion host IP
|
||||
- name: set bastion host IP and port
|
||||
set_fact:
|
||||
bastion_ip: "{{ hostvars[groups['bastion'][0]]['ansible_host'] | d(hostvars[groups['bastion'][0]]['ansible_ssh_host']) }}"
|
||||
bastion_port: "{{ hostvars[groups['bastion'][0]]['ansible_port'] | d(hostvars[groups['bastion'][0]]['ansible_ssh_port']) | d(22) }}"
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
|
||||
|
||||
Reference in New Issue
Block a user