Add ssh keys

This commit is contained in:
Gašper Fele-Žorž 2025-09-06 01:02:27 +02:00
parent fc01fec18c
commit bdc4fa2fc5
3 changed files with 19 additions and 0 deletions

View file

@ -157,3 +157,8 @@
- /etc/skel/.bashrc
- /etc/profile
- /etc/bash.bashrc
- name: Copy authorized_keys
copy:
src: authorized_keys
dest: ~/.ssh/authorized_keys

View file

@ -36,5 +36,15 @@
allow_clobber: true
state: present
- name: Copy admin ssh keys to authorized_keys
win_copy:
src: authorized_keys
dest: "%USERPROFILE%\\.ssh"
- name: Copy admin keys to administrators_authorized_keys
win_copy:
src: authorized_keys
dest: C:\ProgramData\ssh\administrators_authorized_keys
# TODO: turn on GPO to allow guest SMB logins
# TODO: open firewall for Samba