playbook_create_ssh_config: make jumphosts possible
This commit is contained in:
parent
0a4b6d3229
commit
824fcc6343
|
@ -11,6 +11,9 @@
|
||||||
Host {{ host }}
|
Host {{ host }}
|
||||||
User root
|
User root
|
||||||
Hostname {{ hostvars[host]["ip"] }}
|
Hostname {{ hostvars[host]["ip"] }}
|
||||||
|
{% if jumphost is defined and jumphost != host %}
|
||||||
|
ProxyJump {{ jumphost }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
dest: ~/.ssh/ffl_eae_adp_config
|
dest: ~/.ssh/ffl_eae_adp_config
|
||||||
|
|
Reference in New Issue