commited current state
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Create .ssh directory for admin user
|
||||
file:
|
||||
path: /home/admin/.ssh
|
||||
state: directory
|
||||
owner: admin
|
||||
group: admin
|
||||
mode: '0700'
|
||||
|
||||
- name: Deploy authorized SSH keys for admin user
|
||||
template:
|
||||
src: authorized_keys.j2
|
||||
dest: /home/admin/.ssh/authorized_keys
|
||||
owner: admin
|
||||
group: admin
|
||||
mode: '0600'
|
||||
when: admin_authorized_keys is defined and admin_authorized_keys | length > 0
|
||||
Reference in New Issue
Block a user