Massive user refactor

This commit is contained in:
2020-04-22 18:04:16 -06:00
parent 429dd8e5a7
commit 5a9254097e
26 changed files with 896 additions and 123 deletions

7
user/tasks/authorize.yml Normal file
View 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 }}'