community.hrobot.ssh_key_info module – Query information on SSH keys
Note
This module is part of the community.hrobot collection (version 2.5.2).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.hrobot.
To use it in a playbook, specify: community.hrobot.ssh_key_info.
New in community.hrobot 1.2.0
Synopsis
- List information on all your SSH keys stored in Hetzner’s Robot. 
Parameters
| Parameter | Comments | 
|---|---|
| The password for the Robot web-service user. | |
| The username for the Robot web-service user. | |
| Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to  Set to a negative value like  Default:  | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Action group: community.hrobot.robot added in community.hrobot 1.6.0 | Use  | |
| Support: full This action does not modify state. | Can run in  | |
| Support: N/A This action does not modify state. | Will return details on what has changed (or possibly needs changing in  | |
| Support: full This action does not modify state. | When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change. This assumes that the system controlled/queried by the module has not changed in a relevant way. | 
See Also
See also
- community.hrobot.ssh_key
- Add, remove or update SSH key. 
Examples
---
- name: List all SSH keys
  community.hrobot.ssh_key_info:
    hetzner_user: foo
    hetzner_password: bar
  register: ssh_keys
- name: Show how many keys were found
  ansible.builtin.debug:
    msg: "Found {{ ssh_keys.ssh_keys | length }} keys"
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| The list of all SSH keys stored in Hetzner’s Robot for your user. Returned: success | |
| The key data in OpenSSH’s format. Returned: success Sample:  | |
| The key’s MD5 fingerprint. Returned: success Sample:  | |
| The key’s name shown in the UI. Returned: success Sample:  | |
| The key’s size in bits. Returned: success Sample:  | |
| The key’s algorithm type. Returned: success Sample:  | 
