provision_management_user/tasks/add_ssh_keys.yml
Bertrand Lanson 9038f8a2ba
Some checks failed
test / Molecule tests (default, debian11) (push) Blocked by required conditions
test / Molecule tests (default, debian12) (push) Blocked by required conditions
test / Molecule tests (default, ubuntu2004) (push) Blocked by required conditions
test / Molecule tests (default, ubuntu2204) (push) Blocked by required conditions
test / Molecule tests (with_ssh_keys, debian11) (push) Blocked by required conditions
test / Molecule tests (with_ssh_keys, debian12) (push) Blocked by required conditions
test / Molecule tests (with_ssh_keys, ubuntu2004) (push) Blocked by required conditions
test / Molecule tests (with_ssh_keys, ubuntu2204) (push) Blocked by required conditions
test / Linting (push) Has been cancelled
feat: remove become from role, fix #1
2023-12-03 18:10:56 +01:00

11 lines
440 B
YAML

---
# task/add_ssh_keys file for provision_management_user
- name: "Add key to authorized_keys"
ansible.posix.authorized_key:
user: "{{ provision_management_user_name }}"
key: "{{ provision_management_user_ssh_key }}"
comment: "{{ provision_management_user_name }}@{{ ansible_hostname }}"
key_options: "{{ provision_management_user_ssh_key_options }}"
exclusive: "{{ provision_management_user_ssh_key_exclusive }}"