Feat: new system for publickeys

This commit is contained in:
2020-07-16 17:37:34 +02:00
parent 1796e187bc
commit 3dde709e2c
4 changed files with 16 additions and 2 deletions

View File

@@ -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