add and removed ssh authorized keys to users accounts
This module manages users' ssh authorized key lists.
It can add a key to an authorized_keys file.
It can ensure a key is not present in an authorized_keys file.
It can return all the public keys in the authorized_keys file.
(authorized-keys command options)command
The operation to execute. Should be one of :present, :absent or :get
:presentEnsure the specified key is in the authorized_keys file
options
A hashmap of options. All available options and their values are described below
| Option | Description |
|---|---|
:usertype string | The username of the user to receive the credential in their authorized_keys file |
:keytype string | The public key contents to add or remove from the file |
:filetype string | Instead of specifying a user, specify the location of an authorized_keys file to work with |
:optionstype string | A hashmap containing a set of ssh key options that will be prepended to the key in the authorized_keys file. |