Add root keys for all users #120

Merged
reynir merged 2 commits from fix-root-keys into main 2022-11-16 15:24:44 +00:00
Showing only changes of commit 5a54eb6b1e - Show all commits

View file

@ -18,5 +18,5 @@
- name: "Add ssh authorized_keys to root user" - name: "Add ssh authorized_keys to root user"
authorized_key: authorized_key:
user: "root" user: "root"
key: "{{ users | default([]) | map(attribute='ssh_keys') | join('\n') }}" key: "{{ users | default([]) | map(attribute='ssh_keys') | flatten | join('\n') }}"
exclusive: true exclusive: true