The default is yes, which will replace the existing remote key if it's different than pubkey. If no, the key will only be set if no key with the given name exists.
name
-
/ required
SSH key name
pubkey
-
SSH public key value. Required when state=present.
state
-
Choices:
present ←
absent
Whether to remove a key, ensure that it exists, or update its value.
token
-
/ required
GitHub Access Token with permission to list and create public keys.
-name:Read SSH public key to authorizeshell:cat /home/foo/.ssh/id_rsa.pubregister:ssh_pub_key-name:Authorize key with GitHublocal_action:module:github_keyname:Access Key for Some Machinetoken:'{{github_access_token}}'pubkey:'{{ssh_pub_key.stdout}}'