add ssh config
This commit is contained in:
parent
f6299e11e4
commit
4a3995ba29
3 changed files with 32 additions and 0 deletions
|
@ -14,6 +14,7 @@ My current setup is [Regolith OS](https://regolith-desktop.com/) which is basica
|
||||||
- thunderbird config
|
- thunderbird config
|
||||||
- some kind of tag setup with: bootstrap, update, etc.
|
- some kind of tag setup with: bootstrap, update, etc.
|
||||||
- i3 app shortcuts
|
- i3 app shortcuts
|
||||||
|
- firefox config? extensions? host own synchronizer?
|
||||||
|
|
||||||
Would like Ansible Vault to check in keypair for syncthing.
|
Would like Ansible Vault to check in keypair for syncthing.
|
||||||
However, then I would need a password to unlock the vault.
|
However, then I would need a password to unlock the vault.
|
||||||
|
|
21
roles/system/files/ssh_config
Normal file
21
roles/system/files/ssh_config
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
Host brussels
|
||||||
|
HostName brussels.studlab.os3.nl
|
||||||
|
User pkunis
|
||||||
|
|
||||||
|
Host github.com
|
||||||
|
HostName github.com
|
||||||
|
User pizzapim
|
||||||
|
IdentitiesOnly yes
|
||||||
|
|
||||||
|
Host max
|
||||||
|
HostName max.lan
|
||||||
|
User root
|
||||||
|
|
||||||
|
Host lewis
|
||||||
|
HostName lewis.lan
|
||||||
|
User root
|
||||||
|
|
||||||
|
Host forgejo
|
||||||
|
HostName git.pim.kunis.nl
|
||||||
|
Port 56287
|
||||||
|
User git
|
|
@ -51,3 +51,13 @@
|
||||||
apt:
|
apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
when: apt_repository.changed
|
when: apt_repository.changed
|
||||||
|
- name: Create ssh config directory
|
||||||
|
file:
|
||||||
|
path: ~/.ssh
|
||||||
|
state: directory
|
||||||
|
mode: 0700
|
||||||
|
- name: Copy ssh config
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/ssh_config"
|
||||||
|
dest: ~/.ssh/config
|
||||||
|
mode: 0600
|
||||||
|
|
Reference in a new issue