mirror of
https://github.com/gjkcz/ansible-void.git
synced 2024-12-23 03:26:40 +01:00
15 lines
298 B
YAML
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 }}"
|