Clone shirenn's configuration
This commit is contained in:
28
roles/ssh/tasks/main.yml
Normal file
28
roles/ssh/tasks/main.yml
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
- name: Create ssh directory
|
||||
file:
|
||||
path: '.ssh'
|
||||
mode: 0700
|
||||
state: directory
|
||||
|
||||
- name: Create ssh configuration file directory
|
||||
file:
|
||||
path: '.ssh/config.d'
|
||||
mode: 0755
|
||||
state: directory
|
||||
|
||||
- name: Deploying config files
|
||||
template:
|
||||
src: 'config.d/{{ item }}.j2'
|
||||
dest: '.ssh/config.d/{{ item }}'
|
||||
loop:
|
||||
- aurore
|
||||
- crans
|
||||
- dptinfo
|
||||
- perso
|
||||
|
||||
- name: Include config files
|
||||
template:
|
||||
src: 'config.j2'
|
||||
dest: '.ssh/config'
|
3
roles/ssh/templates/config.d/aurore.j2
Normal file
3
roles/ssh/templates/config.d/aurore.j2
Normal file
@ -0,0 +1,3 @@
|
||||
Host *.adm.auro.re
|
||||
User ynerant
|
||||
ProxyJump camelot.auro.re
|
13
roles/ssh/templates/config.d/crans.j2
Normal file
13
roles/ssh/templates/config.d/crans.j2
Normal file
@ -0,0 +1,13 @@
|
||||
Host freebox.crans.org titanic.adm.crans.org soyouz.crans.org ssh.crans.org zamok.crans.org zamok.adm.crans.org *.adh.crans.org note*.crans.org
|
||||
User ynerant
|
||||
|
||||
Host odlyd.crans.org odlyd 10.231.136.4
|
||||
User ynerant
|
||||
Hostname 10.231.136.4
|
||||
ProxyJump zamok.crans.org
|
||||
|
||||
Host 172.16.10.* 185.230.79.* *.adm.crans.org *.crans.org
|
||||
User _ynerant
|
||||
|
||||
Host 172.16.10.* *.adm.crans.org *.crans.org ynerant.fr !hodaur.crans.org !odlyd.crans.org !note*.crans.org
|
||||
ProxyJump hodaur.crans.org
|
6
roles/ssh/templates/config.d/dptinfo.j2
Normal file
6
roles/ssh/templates/config.d/dptinfo.j2
Normal file
@ -0,0 +1,6 @@
|
||||
Host *.dptinfo.ens-cachan.fr !ssh.dptinfo.ens-cachan.fr
|
||||
User danello
|
||||
ProxyJump ssh.dptinfo.ens-cachan.fr
|
||||
|
||||
Host ssh.dptinfo.ens-cachan.fr
|
||||
User danello
|
4
roles/ssh/templates/config.d/perso.j2
Normal file
4
roles/ssh/templates/config.d/perso.j2
Normal file
@ -0,0 +1,4 @@
|
||||
Host main
|
||||
User ynerant
|
||||
Hostname ynerant-pc.fil.sand.auro.re
|
||||
ProxyJump camelot.auro.re
|
1
roles/ssh/templates/config.j2
Normal file
1
roles/ssh/templates/config.j2
Normal file
@ -0,0 +1 @@
|
||||
Include ~/.ssh/config.d/*
|
Reference in New Issue
Block a user