mirror of
https://github.com/gjkcz/ansible-void.git
synced 2026-10-12 23:37:00 +02:00
Create role for SSH
This commit is contained in:
1 parent
9a0892c9b4
commit
78f53019c5
4 files changed
+26
-29
No files matched your search
@@ -0,0 +1,14 @@
|
||||
- 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 }}"
|
||||
Reference in new issue
Block a user