1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
hetzner.hcloud/plugins/modules
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
..
__init__.py Initial commit 2020-03-09 13:36:01 +00:00
certificate.py feat: use exponential backoff algorithm when polling actions (#524) 2024-07-04 15:07:05 +02:00
certificate_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
datacenter_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
firewall.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
firewall_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
firewall_resource.py docs: fix firewall_resource examples input parameters (#557) 2024-09-12 13:42:11 +02:00
floating_ip.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
floating_ip_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
image_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
iso_info.py chore(deps): update dependency hcloud to v2 (#523) 2024-07-03 15:05:12 +02:00
load_balancer.py feat: compute load balancer targets status using a filter (#550) 2024-08-14 14:18:39 +02:00
load_balancer_info.py feat: compute load balancer targets status using a filter (#550) 2024-08-14 14:18:39 +02:00
load_balancer_network.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
load_balancer_service.py fix: only update load balancer service when changed (#603) 2025-02-24 14:26:58 +01:00
load_balancer_target.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
load_balancer_type_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
location_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
network.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
network_info.py chore: replace deprecated server type with cx22 (#510) 2024-06-11 15:30:47 +02:00
placement_group.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
primary_ip.py chore(deps): update dependency hcloud to v2 (#523) 2024-07-03 15:05:12 +02:00
primary_ip_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
rdns.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
route.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
server.py fix: remove deprecated force_upgrade argument (#637) 2025-05-21 17:43:16 +02:00
server_info.py chore: replace deprecated server type with cx22 (#510) 2024-06-11 15:30:47 +02:00
server_network.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
server_type_info.py feat: deprecate server_type_info included_traffic return value (#532) 2024-07-25 13:45:29 +02:00
ssh_key.py feat: allow recreating ssh key when public key in the API does not match (#634) 2025-06-03 17:43:54 +02:00
ssh_key_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00
subnetwork.py fix: improve actions waiting timeout based on data (#488) 2024-04-15 11:01:12 +02:00
volume.py fix!: do not detach volume if server is not provided (#632) 2025-05-07 10:44:39 +02:00
volume_attachment.py feat: add volume_attachment module (#622) 2025-04-28 12:49:21 +02:00
volume_info.py refactor: remove unneeded to_native calls (#477) 2024-03-27 14:11:30 +01:00