Selaa lähdekoodia

only add hostname if external_ip is defined

systemd-xsession
vanhempi
commit
8c82dbf3e4
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      templates/ssh.config.j2

+ 2
- 0
templates/ssh.config.j2 Näytä tiedosto

@@ -1,4 +1,6 @@
{% for hostname in groups.vms %}
Host {{hostname}}
{% if 'external_ip' in hostvars[hostname] %}
HostName {{hostvars[hostname].external_ip}}
{% endif %}
{% endfor %}