automatically add admin authorized keys to dataserver

This commit is contained in:
Pim Kunis 2023-01-15 22:43:17 +01:00
parent 3624175189
commit c140c8a606
2 changed files with 9 additions and 0 deletions

View file

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