Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
ka
/
ansible-role-home
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
only add hostname if external_ip is defined
systemd-xsession
Markus Katharina Brechtel
4 anos atrás
pai
6f25d6fc32
commit
8c82dbf3e4
1 arquivos alterados
com
2 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+2
-0
templates/ssh.config.j2
+ 2
- 0
templates/ssh.config.j2
Ver arquivo
@@ -1,4 +1,6 @@
{% for hostname in groups.vms %}
Host {{hostname}}
{% if 'external_ip' in hostvars[hostname] %}
HostName {{hostvars[hostname].external_ip}}
{% endif %}
{% endfor %}