facts: get admins’ SSH keys from password store

Also install them into root’s authorized_keys on alpine.
This commit is contained in:
Timotej Lazar 2025-03-24 18:28:46 +01:00
parent 7907b6f0e5
commit 1a7b813dff
2 changed files with 29 additions and 0 deletions

View file

@ -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') }}"