Files
ansible-collection/roles/authorized-key/tasks/main.yml
T

15 lines
287 B
YAML
Raw Normal View History

2026-10-02 21:34:01 +04:00
---
- name: ensure .ssh exists
ansible.builtin.file:
path: /root/.ssh
state: directory
mode: "0700"
owner: root
group: root
- name: set authorized key
ansible.posix.authorized_key:
user: root
state: present
key: "{{ item }}"
loop: "{{ ssh_keys }}"