playbook_create_ssh_config: make jumphosts possible

This commit is contained in:
Gregor Michels 2022-06-30 01:41:11 +02:00
parent 0a4b6d3229
commit 824fcc6343
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@
Host {{ host }}
User root
Hostname {{ hostvars[host]["ip"] }}
{% if jumphost is defined and jumphost != host %}
ProxyJump {{ jumphost }}
{% endif %}
{% endfor %}
dest: ~/.ssh/ffl_eae_adp_config