Create users, configure their ssh private keys and set authorized keys for created users.
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
user_users: []
A list of users to create.
None.
- hosts: servers
vars:
user_users:
- name: example_user
ssh_private_key_path: "../app_keys/id_rsa"
authorized_key_path: false
roles:
- { role: danylevskyi.user }
Provided example will create example_user
with id_rsa
ssh private key.
- Add tests.
BSD / MIT
This role was created in 2017 by Dmytro Danylevskyi.