Albert Stefanov 6cc9946aec Start writing the Ansible playbook
If we want to automate everything :-) #8
2024-05-01 16:15:32 +03:00

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([]))
}}"