Massive user refactor
This commit is contained in:
7
user/tasks/authorize.yml
Normal file
7
user/tasks/authorize.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# Authorize this key to this users ~/.ssh/authorized_keys file
|
||||
- name: Adding {{ user }} SSH key to {{ ssh_into }} users ~/.ssh/authorized_keys
|
||||
authorized_key:
|
||||
user: '{{ item }}'
|
||||
key: "{{ lookup('file', user_path + '/keys/' + user + '.key.pub') }}"
|
||||
with_items: '{{ ssh_into }}'
|
||||
Reference in New Issue
Block a user