Refactor server roles into one that handles all OS physical or virtual
This commit is contained in:
8
functions/user_authorize.yml
Normal file
8
functions/user_authorize.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# Authorize this key to this users ~/.ssh/authorized_keys file
|
||||
- name: Adding {{ authorize }} to {{ user }} user ~/.ssh/authorized_keys file
|
||||
authorized_key:
|
||||
user: '{{ user }}'
|
||||
key: '{{ item }}'
|
||||
with_file:
|
||||
- 'keys/{{ authorize }}.key.pub'
|
||||
Reference in New Issue
Block a user