Add ssh keys
This commit is contained in:
parent
fc01fec18c
commit
bdc4fa2fc5
3 changed files with 19 additions and 0 deletions
|
@ -157,3 +157,8 @@
|
|||
- /etc/skel/.bashrc
|
||||
- /etc/profile
|
||||
- /etc/bash.bashrc
|
||||
|
||||
- name: Copy authorized_keys
|
||||
copy:
|
||||
src: authorized_keys
|
||||
dest: ~/.ssh/authorized_keys
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue