Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
ka
/
ansible-role-home
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
vm ip config
systemd-xsession
Markus Katharina Brechtel
hace 4 años
padre
3ee63770f1
commit
6f25d6fc32
Se han
modificado 2 ficheros
con
16 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+12
-0
tasks/ssh.yaml
+4
-0
templates/ssh.config.j2
+ 12
- 0
tasks/ssh.yaml
Ver fichero
@@ -5,3 +5,15 @@
src: ~/ssh-keys/
dest: ~/ssh-keys
mode: u=rw,g=,o=
- name: ssh auto config
template:
src: ssh.config.j2
dest: ~/.ssh/config.auto
- name: include ssh auto config
lineinfile:
path: ~/.ssh/config
line: Include config.auto
insertbefore: BOF
create: true
+ 4
- 0
templates/ssh.config.j2
Ver fichero
@@ -0,0 +1,4 @@
{% for hostname in groups.vms %}
Host {{hostname}}
HostName {{hostvars[hostname].external_ip}}
{% endfor %}