2024-02-16 18:01:26 +02:00
|
|
|
---
|
|
|
|
|
2024-02-16 22:34:58 +02:00
|
|
|
- name: Add public keys for root
|
2024-02-16 18:01:26 +02:00
|
|
|
ansible.posix.authorized_key:
|
|
|
|
user: root
|
|
|
|
key: "{{ lookup('file', '../../access/keys/' + item + '.pub') }}"
|
|
|
|
state: present # Note: we don't remove other/existing keys
|
2024-02-16 22:34:58 +02:00
|
|
|
with_items: "{{ global_ssh_keys + (ssh_keys['root'] | default([])) }}"
|