2023-03-25 23:00:42 +00:00
|
|
|
---
|
|
|
|
# task/add_ssh_keys file for provision_ansible_user
|
|
|
|
- name: "Add key to authorized_keys"
|
|
|
|
ansible.posix.authorized_key:
|
|
|
|
user: "{{ provision_ansible_user_name }}"
|
|
|
|
key: "{{ provision_ansible_user_ssh_key }}"
|
2023-03-26 20:56:15 +00:00
|
|
|
comment: "{{ provision_ansible_user_name }}@{{ ansible_hostname }}"
|
2023-03-25 23:00:42 +00:00
|
|
|
key_options: "{{ provision_ansible_user_ssh_key_options }}"
|
|
|
|
exclusive: "{{ provision_ansible_user_ssh_key_exclusive }}"
|