14 lines
301 B
YAML
14 lines
301 B
YAML
- name: Set up authorized_keys file for root
|
|
file:
|
|
path: /root/.ssh
|
|
state: directory
|
|
mode: '0700'
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Add SSH authorized keys
|
|
ansible.posix.authorized_key:
|
|
user: root
|
|
key: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ vars.ssh_keys }}"
|