1
0
mirror of https://github.com/gjkcz/ansible-void.git synced 2024-12-22 19:26:38 +01:00
ansible-void/roles/ssh/tasks/main.yaml
2024-12-04 11:04:12 +01:00

15 lines
298 B
YAML

- name: Ensure SSH directory exists
file:
path: "{{ ssh_dir }}"
state: directory
owner: "{{ ssh_user }}"
group: "{{ ssh_user }}"
mode: 0700
- name: Import SSH keys
authorized_key:
user: "{{ ssh_user }}"
key: "{{ item }}"
state: present
loop: "{{ ssh_keys }}"