1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 16:11:49 +00:00
hetzner.hcloud/plugins/module_utils
Amirhossein Shaerpour 4fc2003f30
feat: allow recreating ssh key when public key in the API does not match (#634)
##### SUMMARY

- Log a warning when the provided public key does not match one in the
API.
- When the public key does not match the one in the API, allow
recreating the SSH Key in the API using the ``force=true`` argument.


Closes: #578 

##### ISSUE TYPE
- Feature Pull Request

##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below
-->
`ssh_key`

##### ADDITIONAL INFORMATION
In Hetzner API, we do not have any public_key change endpoint and only
updating names and labels are allowed.
For public_key The only way is removing and re-creating. `force` option
allows users to do re-creation if needed.

---------

Co-authored-by: jo <ljonas@riseup.net>
2025-06-03 17:43:54 +02:00
..
vendor chore(deps): update dependency hcloud to v2.5.2 (#639) 2025-05-23 11:32:39 +02:00
__init__.py Initial commit 2020-03-09 13:36:01 +00:00
client.py refactor: reuse exponential_backoff_function from hcloud-python (#535) 2024-07-25 16:20:23 +02:00
hcloud.py refactor: reuse exponential_backoff_function from hcloud-python (#535) 2024-07-25 16:20:23 +02:00
ssh.py feat: allow recreating ssh key when public key in the API does not match (#634) 2025-06-03 17:43:54 +02:00
version.py chore(main): release 5.0.1 (#638) 2025-05-21 17:48:04 +02:00