ansible-common/tasks/auth.yml
Frank Villaro-Dixon a12c502c85 vim + ssh
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-10-13 01:08:56 +02:00

15 lines
No EOL
322 B
YAML

- name: Set up authorized_keys file for root
file:
path: /root/.ssh
state: directory
mode: '0700'
owner: root
group: root
- name: Ensure authorized_keys keys
copy:
dest: /root/.ssh/authorized_keys
content: "{{ vars.ssh_keys | join('\n') }}"
owner: root
group: root
mode: '0600'