Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
ka
/
ansible-role-home
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
vm ip config
systemd-xsession
Markus Katharina Brechtel
4 anni fa
parent
3ee63770f1
commit
6f25d6fc32
2 ha cambiato i file
con
16 aggiunte
e
0 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-0
tasks/ssh.yaml
+4
-0
templates/ssh.config.j2
+ 12
- 0
tasks/ssh.yaml
Vedi File
@@ -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
Vedi File
@@ -0,0 +1,4 @@
{% for hostname in groups.vms %}
Host {{hostname}}
HostName {{hostvars[hostname].external_ip}}
{% endfor %}