Bertrand Lanson
40210f9b6d
All checks were successful
test / Linting (push) Successful in 9s
test / Molecule tests (default, debian11) (push) Successful in 26s
test / Molecule tests (default, ubuntu2004) (push) Successful in 26s
test / Molecule tests (default, debian12) (push) Successful in 33s
test / Molecule tests (default, ubuntu2204) (push) Successful in 27s
test / Molecule tests (with_ssh_keys, debian11) (push) Successful in 29s
test / Molecule tests (with_ssh_keys, debian12) (push) Successful in 30s
test / Molecule tests (with_ssh_keys, ubuntu2204) (push) Successful in 29s
test / Molecule tests (with_ssh_keys, ubuntu2004) (push) Successful in 45s
11 lines
452 B
YAML
11 lines
452 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 }}"
|
|
become: true
|