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:
6
playbooks/roles/authorized_keys/tasks/main.yaml
Normal file
6
playbooks/roles/authorized_keys/tasks/main.yaml
Normal 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') }}"
|
||||
Reference in New Issue
Block a user