Feat: 2 differents ssh config me!=deploy

This commit is contained in:
Bertrand Benjamin 2020-04-16 11:44:55 +02:00
parent af5fbc30d5
commit 54b49ec564
3 changed files with 57 additions and 10 deletions

View File

@ -0,0 +1,33 @@
Host Manioc
HostName ns331481.ip-37-187-121.eu
User waha
ForwardAgent yes
PubkeyAcceptedKeyTypes *
identityfile ~/.ssh/id_ed25519_Manioc
Host Embrevade
HostName 5.196.95.88
User waha
Port 22
ForwardAgent yes
PubkeyAcceptedKeyTypes *
identityfile ~/.ssh/id_ed25519_Embrevade
IdentitiesOnly yes
Host Panais
HostName 91.121.90.228
User waha
Port 22
ForwardAgent yes
PubkeyAcceptedKeyTypes *
identityfile ~/.ssh/id_ed25519_Panais
IdentitiesOnly yes
Host BV_boutique
HostName vps789921.ovh.net
User waha
Port 22
ForwardAgent yes
PubkeyAcceptedKeyTypes *
identityfile ~/.ssh/id_ed25519_BV_boutique
IdentitiesOnly yes

View File

@ -1,13 +1,13 @@
Host Manioc
HostName ns331481.ip-37-187-121.eu
User waha
User sshcontent
ForwardAgent yes
PubkeyAcceptedKeyTypes *
identityfile ~/.ssh/id_ed25519_Manioc
Host Embrevade
HostName 5.196.95.88
User waha
User sshcontent
Port 22
ForwardAgent yes
PubkeyAcceptedKeyTypes *
@ -16,7 +16,7 @@ Host Embrevade
Host Panais
HostName 91.121.90.228
User waha
User sshcontent
Port 22
ForwardAgent yes
PubkeyAcceptedKeyTypes *
@ -25,7 +25,7 @@ Host Panais
Host BV_boutique
HostName vps789921.ovh.net
User waha
User sshcontent
Port 22
ForwardAgent yes
PubkeyAcceptedKeyTypes *
@ -34,17 +34,17 @@ Host BV_boutique
Host git_opytex
HostName git.opytex.org
User git
User git
Port 2222
identityfile ~/.ssh/id_rsa_gitopytex
identityfile ~/.ssh/id_rsa_gitopytex
IdentitiesOnly yes
Host github
HostName github.com
User git
User git
ForwardAgent yes
PubkeyAcceptedKeyTypes *
identityfile ~/.ssh/id_dsa_noPass
identityfile ~/.ssh/id_dsa_noPass
Host Choux
HostName Choux
@ -52,3 +52,17 @@ Host Choux
ForwardAgent yes
identityfile ~/.ssh/id_ed25519_home
PubkeyAcceptedKeyTypes *
Host Combava
HostName Combava
User lafrite
ForwardAgent yes
identityfile ~/.ssh/id_ed25519_home
PubkeyAcceptedKeyTypes *
Host Raisin
HostName Raisin
User lafrite
ForwardAgent yes
identityfile ~/.ssh/id_ed25519_home
PubkeyAcceptedKeyTypes *

View File

@ -123,7 +123,7 @@
- name: dotfiles -- Copy ssh user config
template:
src: files/dotfiles/sshconfig
src: files/dotfiles/ssh/config_deploy
dest: /home/{{ item.username }}/.ssh/config
owner: "{{ item.username }}"
group: "{{ item.group }}"
@ -132,7 +132,7 @@
- name: dotfiles -- Copy ssh user config
template:
src: files/dotfiles/sshconfig
src: files/dotfiles/ssh/config_me
dest: /home/{{ item.username }}/.ssh/config
owner: "{{ item.username }}"
group: "{{ item.group }}"