add ssh config

This commit is contained in:
Pim Kunis 2023-02-20 09:32:47 +01:00
parent f6299e11e4
commit 4a3995ba29
3 changed files with 32 additions and 0 deletions

View file

@ -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.

View 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

View file

@ -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