Add role for deploying SSH authorized_keys and add it to maint. playb.

Having this role will enable us to easily manage SSH authorized_keys.
This commit is contained in:
Julian Schacher
2024-02-07 20:44:46 +01:00
parent 58ea4d4729
commit de568ceacd
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPH2H5bko/cRy5MGaHaKxQ1KT/f4m3RMS5Cy+qqSFdqh

View File

@@ -0,0 +1,6 @@
- name: Deploy authorized keys for cit user
ansible.posix.authorized_key:
state: present
user: cit
exclusive: true
key: "{{ lookup('file', 'cit_authorized_keys') }}"