Feat: new system for publickeys
This commit is contained in:
@@ -16,3 +16,12 @@
|
||||
with_items: "{{ users }}"
|
||||
when: create_user
|
||||
|
||||
- name: ssh -- Add public key
|
||||
authorized_key:
|
||||
user: "{{ item.user.username }}"
|
||||
key: "{{ lookup('file', 'sshpubs/' + item.key) }}"
|
||||
state: present
|
||||
with_items: "{{ public_key }}"
|
||||
register: add_identity_key
|
||||
tags:
|
||||
- first_deployement
|
||||
|
||||
Reference in New Issue
Block a user