automatically add admin authorized keys to dataserver
This commit is contained in:
parent
3624175189
commit
c140c8a606
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
- name: Add admins' authorized keys
|
||||
authorized_key:
|
||||
key: "{{ item }}"
|
||||
user: "{{ ansible_user_id }}"
|
||||
loop: "{{ admin_public_keys }}"
|
||||
- name: Copy host public key
|
||||
template:
|
||||
src: "{{ role_path }}/templates/ssh_host_ed25519_key.pub.j2"
|
||||
|
|
Reference in a new issue