1
0
mirror of https://github.com/gjkcz/ansible-void.git synced 2024-12-23 11:36:39 +01:00
ansible-void/roles/ssh/tasks/main.yaml

15 lines
298 B
YAML
Raw Normal View History

2024-12-04 11:04:12 +01:00
- 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 }}"