2024/automation/ansible/roles/common/tasks/root_sshkeys.yml

12 lines
307 B
YAML

---
- name: Add public keys for root
ansible.posix.authorized_key:
user: root
key: "{{ lookup('ansible.builtin.url', item) }}"
state: present # Note: we don't remove other/existing keys
with_items: "{{
(global_root_ssh_key_urls | default([])) +
(root_ssh_keys | default([]))
}}"