facts: get admins’ SSH keys from password store
Also install them into root’s authorized_keys on alpine.
This commit is contained in:
parent
7907b6f0e5
commit
1a7b813dff
2 changed files with 29 additions and 0 deletions
|
@ -115,3 +115,9 @@
|
|||
template:
|
||||
dest: /etc/motd
|
||||
src: motd.j2
|
||||
|
||||
- name: Set authorized SSH keys
|
||||
authorized_key:
|
||||
user: root
|
||||
exclusive: true
|
||||
key: "{{ ssh_keys | join('\n') }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue