Bertrand Lanson
4b85e03e3e
Some checks failed
test / Linting (push) Failing after 9s
test / Molecule tests (default, debian11) (push) Has been skipped
test / Molecule tests (default, debian12) (push) Has been skipped
test / Molecule tests (default, ubuntu2004) (push) Has been skipped
test / Molecule tests (default, ubuntu2204) (push) Has been skipped
test / Molecule tests (with_ssh_keys, debian11) (push) Has been skipped
test / Molecule tests (with_ssh_keys, debian12) (push) Has been skipped
test / Molecule tests (with_ssh_keys, ubuntu2004) (push) Has been skipped
test / Molecule tests (with_ssh_keys, ubuntu2204) (push) Has been skipped
10 lines
433 B
YAML
10 lines
433 B
YAML
---
|
|
# 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 }}"
|
|
comment: "{{ provision_ansible_user_name }}@{{ ansible_hostname }}"
|
|
key_options: "{{ provision_ansible_user_ssh_key_options }}"
|
|
exclusive: "{{ provision_ansible_user_ssh_key_exclusive }}"
|
|
become: true |