A role to manage ssh keys for users.
No special requirements.
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
# the ssh key directory
ssh_key_directory: "/etc/ssh/authorized_keys"
ssh_keys:
- user: galexrt
file: "data/test.pub"
- user: galexrt
key: "ssh-rsa ..."
[...]
No dependencies.
An example playbook on how to use this role:
- hosts: servers
roles:
- { role: galexrt.sshkeymgt, ssh_key_directory: "/etc/ssh/authorized_keys" }
MIT
If you have problems with the role, feel free to create an issue on Github or contact me by mail.