1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
Commit graph

160 commits

Author SHA1 Message Date
Amirhossein Shaerpour
e6e4ce1d5f
fix: add volume_attachment module to meta (#655)
##### SUMMARY
Add `volume_attachment` module to meta runtime file

##### ISSUE TYPE
- Docs Pull Request

---------

Co-authored-by: jo <ljonas@riseup.net>
2025-06-18 10:11:48 +02:00
Hetzner Cloud Bot
f86cdf460b
chore(main): release 5.1.0 (#653)
🤖 I have created a release *beep* *boop*
---


##
[5.1.0](https://github.com/ansible-collections/hetzner.hcloud/compare/5.0.1...5.1.0)
(2025-06-11)


### Features

* allow recreating ssh key when public key in the API does not match
([#634](https://github.com/ansible-collections/hetzner.hcloud/issues/634))
([4fc2003](4fc2003f30))


### Bug Fixes

* ensure returned resource ids are integers
([#651](https://github.com/ansible-collections/hetzner.hcloud/issues/651))
([579b34e](579b34e754))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2025-06-11 10:24:40 +02:00
Jonas L.
6bd07dca84
docs: add missing changelog fragment for #647 (#652)
##### SUMMARY

A changelog fragment was missing when we fixed the bug #647.
2025-06-11 10:17:22 +02:00
Jonas L.
579b34e754
fix: ensure returned resource ids are integers (#651)
##### SUMMARY

The documentation states that all our returned resource ids are
integers, this change aligns our modules with the docs.

The impact of this change should be minimal, as ids are used for
identification purposes by directly forwarding the values (no
transformation of the data is done).

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

All modules
2025-06-11 10:09:12 +02:00
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
Hetzner Cloud Bot
4e5e65abcc
chore(main): release 5.0.1 (#638)
🤖 I have created a release *beep* *boop*
---


##
[5.0.1](https://github.com/ansible-collections/hetzner.hcloud/compare/5.0.0...5.0.1)
(2025-05-21)


### Bug Fixes

* remove deprecated force_upgrade argument
([#637](https://github.com/ansible-collections/hetzner.hcloud/issues/637))
([88f84e7](88f84e7d7c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2025-05-21 17:48:04 +02:00
Jonas L.
88f84e7d7c
fix: remove deprecated force_upgrade argument (#637)
##### SUMMARY

The alias removal was planned for the version 5.0.0, but I forgot to
remove the alias before cutting the 5.0.0 release (the sanity check only
failed after the release pull request was merged).

Since this is the second time I forgot to remove the deprecated alias, I
will cut a patch release, including this breaking change, as soon as
possible, so we still consider this part of the 5.0.0 release.

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server
2025-05-21 17:43:16 +02:00
Hetzner Cloud Bot
ac1b8bdbf7
chore(main): release 5.0.0 (#613)
🤖 I have created a release *beep* *boop*
---


##
[5.0.0](https://github.com/ansible-collections/hetzner.hcloud/compare/4.3.0...5.0.0)
(2025-05-21)


### ⚠ BREAKING CHANGES

* do not detach volume if `server` is not provided
([#632](https://github.com/ansible-collections/hetzner.hcloud/issues/632))
* prevent host variable name collision with ansible reserved names
([#617](https://github.com/ansible-collections/hetzner.hcloud/issues/617))
* drop support for ansible-core 2.16
([#612](https://github.com/ansible-collections/hetzner.hcloud/issues/612))
* drop support for ansible-core 2.15
([#611](https://github.com/ansible-collections/hetzner.hcloud/issues/611))

### Features

* add volume_attachment module
([#622](https://github.com/ansible-collections/hetzner.hcloud/issues/622))
([c37cdf0](c37cdf0bc6))
* allow renaming a server
([#619](https://github.com/ansible-collections/hetzner.hcloud/issues/619))
([e59e787](e59e787d99))
* drop support for ansible-core 2.15
([#611](https://github.com/ansible-collections/hetzner.hcloud/issues/611))
([92f1354](92f135456f))
* drop support for ansible-core 2.16
([#612](https://github.com/ansible-collections/hetzner.hcloud/issues/612))
([140d150](140d1508cc))
* drop support for python 3.8
([#615](https://github.com/ansible-collections/hetzner.hcloud/issues/615))
([b82e18f](b82e18ffbd))


### Bug Fixes

* do not detach volume if `server` is not provided
([#632](https://github.com/ansible-collections/hetzner.hcloud/issues/632))
([e8fda35](e8fda3557c))
* prevent host variable name collision with ansible reserved names
([#617](https://github.com/ansible-collections/hetzner.hcloud/issues/617))
([5de425c](5de425c90c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2025-05-21 17:06:52 +02:00
Amirhossein Shaerpour
e8fda3557c
fix!: do not detach volume if server is not provided (#632)
Do not detach volume if `server` is not provided

##### SUMMARY

Volumes were automatically detached from servers if they already exists
and attached to a server.
This PR fixes this issue after adding new ```volume_attachment``` module
so user can attach/detach
volumes with that module

Fixes: #490 

##### ISSUE TYPE
- Bugfix Pull Request

##### COMPONENT NAME
```volume```

---------

Co-authored-by: Jonas L. <jooola@users.noreply.github.com>
2025-05-07 10:44:39 +02:00
Amirhossein Shaerpour
c37cdf0bc6
feat: add volume_attachment module (#622)
##### SUMMARY

Added `volume_attachment` as centralized module for attaching and
detaching volumes from servers.

Fixes #490

##### ISSUE TYPE
- New Module Pull Request

##### COMPONENT NAME
`volume_attachment`

---------

Co-authored-by: jo <ljonas@riseup.net>
2025-04-28 12:49:21 +02:00
Jonas L.
5de425c90c
fix!: prevent host variable name collision with ansible reserved names (#617)
##### SUMMARY

Fixes #616 

The default value for the `hostvars_prefix` option is now set to
`hcloud_` to prevent name collision with ansible reserved names when
setting the host vars.

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

inventory
2025-03-25 17:35:19 +01:00
Jonas L.
e59e787d99
feat: allow renaming a server (#619)
##### SUMMARY

Fixes #600

Allow renaming a server by passing its id and its new name.

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

server
2025-03-25 17:34:59 +01:00
Jonas L.
b82e18ffbd
feat: drop support for python 3.8 (#615)
##### SUMMARY

Drop support for python 3.8 which is EOL since Oct 2024.

https://endoflife.date/python

Allow us to upgrade the hcloud-python library.
2025-03-21 15:10:23 +01:00
Jonas L.
140d1508cc
feat!: drop support for ansible-core 2.16 (#612)
##### SUMMARY

ansible-core 2.16 will be EOL in May 2025.


https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix

We are dropping support for ansible-core 2.16 alongside ansible-core
2.15 to prevent cutting another major release in the next month.
2025-03-21 14:51:58 +01:00
Jonas L.
92f135456f
feat!: drop support for ansible-core 2.15 (#611)
##### SUMMARY

ansible-core 2.15 is EOL since Nov 2024.


https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
2025-03-21 14:50:47 +01:00
Hetzner Cloud Bot
3bf8d7d21e
chore(main): release 4.3.0 (#604)
🤖 I have created a release *beep* *boop*
---


##
[4.3.0](https://github.com/ansible-collections/hetzner.hcloud/compare/4.2.2...4.3.0)
(2025-03-21)


### Features

* add new `created` state for idempotent server creation
([#606](https://github.com/ansible-collections/hetzner.hcloud/issues/606))
([4534cf6](4534cf6b9d))


### Bug Fixes

* only update load balancer service when changed
([#603](https://github.com/ansible-collections/hetzner.hcloud/issues/603))
([6956596](6956596fd2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2025-03-21 14:47:22 +01:00
Daniele Fognini
4534cf6b9d
feat: add new created state for idempotent server creation (#606)
##### SUMMARY

Add a new state for server creation without immediate start, to allow
idempotent network customization before starting

##### ISSUE TYPE
- Feature Pull Request

##### COMPONENT NAME
server

---------

Co-authored-by: jo <ljonas@riseup.net>
2025-03-21 14:05:03 +01:00
Hetzner Cloud Bot
098883454c
chore(main): release 4.2.2 (#571)
🤖 I have created a release *beep* *boop*
---


##
[4.2.2](https://github.com/ansible-collections/hetzner.hcloud/compare/4.2.1...4.2.2)
(2024-11-22)


### Bug Fixes

* improve unknown certificate error in `load_balancer_service`
([#570](https://github.com/ansible-collections/hetzner.hcloud/issues/570))
([fe3bfa9](fe3bfa9020))
* only rebuild existing servers, skip rebuild if it was just created
([#581](https://github.com/ansible-collections/hetzner.hcloud/issues/581))
([06718d0](06718d0db0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-11-22 13:51:01 +01:00
Jonas L.
06718d0db0
fix: only rebuild existing servers, skip rebuild if it was just created (#581)
##### SUMMARY

Fixes #580

A freshly created server must not be rebuild.

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server
2024-11-11 17:09:37 +01:00
Jonas L.
fe3bfa9020
fix: improve unknown certificate error in load_balancer_service (#570)
##### SUMMARY

Closes #563 

##### ISSUE TYPE

- Bugfix Pull Request

##### COMPONENT NAME

load_balancer_service
2024-10-10 15:19:16 +02:00
Hetzner Cloud Bot
8503764dd0
chore(main): release 4.2.1 (#562)
🤖 I have created a release *beep* *boop*
---


##
[4.2.1](https://github.com/ansible-collections/hetzner.hcloud/compare/4.2.0...4.2.1)
(2024-09-23)


### Bug Fixes

* **server:** timeout in server creation when waiting on next actions
([#561](https://github.com/ansible-collections/hetzner.hcloud/issues/561))
([98e9c52](98e9c52c74))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-09-23 09:08:39 +02:00
Julian Tölle
98e9c52c74
fix(server): timeout in server creation when waiting on next actions (#561)
While we wait a long time on the `create_server` actions, we only wait 2
minutes on any follow up actions like `start_server` or
`attach_network`. This is sometimes not enough. This commit adds a longer
wait timeout for the `next_actions` returned after creating the server.

Co-authored-by: Marco Montesi <marco.montesi@gmail.com>
2024-09-23 09:00:57 +02:00
Hetzner Cloud Bot
9cce39cf56
chore(main): release 4.2.0 (#551)
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](https://github.com/ansible-collections/hetzner.hcloud/compare/4.1.0...4.2.0)
(2024-08-30)


### Features

* compute load balancer targets status using a filter
([#550](https://github.com/ansible-collections/hetzner.hcloud/issues/550))
([fce8bc9](fce8bc9bb9))


### Bug Fixes

* check label_selector child targets with load_balancer_status filter
([#552](https://github.com/ansible-collections/hetzner.hcloud/issues/552))
([abdf722](abdf72212b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-08-30 15:20:16 +02:00
Jonas L.
fce8bc9bb9
feat: compute load balancer targets status using a filter (#550)
##### SUMMARY

Allow to compute the status of a load balancer using a filter.

Closes #467 

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

hetzner.hcloud.loab_balancer_status
2024-08-14 14:18:39 +02:00
Hetzner Cloud Bot
7aa87bb9d9
chore(main): release 4.1.0 (#534)
🤖 I have created a release *beep* *boop*
---


##
[4.1.0](https://github.com/ansible-collections/hetzner.hcloud/compare/4.0.1...4.1.0)
(2024-07-25)


### Features

* deprecate `server_type_info` `included_traffic` return value
([#532](https://github.com/ansible-collections/hetzner.hcloud/issues/532))
([39aa356](39aa356c4c))
* use exponential backoff algorithm when polling actions
([#524](https://github.com/ansible-collections/hetzner.hcloud/issues/524))
([19e586f](19e586fa22))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-25 14:01:03 +02:00
Jonas L.
92efa8dfb4
docs: add release summary (#533) 2024-07-25 13:57:12 +02:00
Jonas L.
39aa356c4c
feat: deprecate server_type_info included_traffic return value (#532)
### API Changes for Traffic Prices and Server Type Included Traffic

There will be a breaking change in the API regarding Traffic Prices and
Server Type Included Traffic on 2024-08-05. This release marks the
affected fields as `Deprecated`. Please check if this affects any of
your code and switch to the replacement fields where necessary.

You can learn more about this change in [our
changelog](https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format).
2024-07-25 13:45:29 +02:00
Jonas L
19e586fa22
feat: use exponential backoff algorithm when polling actions (#524)
##### SUMMARY

Replace the constant poll interval of 1 second, with a truncated
exponential back off algorithm with jitter.

Below is a suite of poll interval (in seconds) generated by the new
algorithm:
```
1.49
2.14
5.46
6.51
6.57
5.57
5.98
7.13
6.59
7.10
5.54
5.03
6.56
5.96
6.72
7.21
7.05
5.31
5.60
6.33
6.82
5.42
6.08
6.60
TOTAL: 140.77
```
2024-07-04 15:07:05 +02:00
Hetzner Cloud Bot
03dfeb2f2b
chore(main): release 4.0.1 (#517)
🤖 I have created a release *beep* *boop*
---


##
[4.0.1](https://github.com/ansible-collections/hetzner.hcloud/compare/4.0.0...4.0.1)
(2024-06-11)


### Bug Fixes

* keep deprecated alias for another major version
([#515](https://github.com/ansible-collections/hetzner.hcloud/issues/515))
([49e21ae](49e21ae4fe))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-06-11 16:57:06 +02:00
Jonas L
49e21ae4fe
fix: keep deprecated alias for another major version (#515)
This was not removed during the v4.0.0 release, we must therefor
reschedule it for the v5.0.0 release.
2024-06-11 16:55:27 +02:00
Hetzner Cloud Bot
19e5595a9c
chore(main): release 4.0.0 (#514)
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](https://github.com/ansible-collections/hetzner.hcloud/compare/3.1.1...4.0.0)
(2024-06-11)


### ⚠ BREAKING CHANGES

* drop support for ansible-core 2.14
([#512](https://github.com/ansible-collections/hetzner.hcloud/issues/512))

### Features

* drop support for ansible-core 2.14
([#512](https://github.com/ansible-collections/hetzner.hcloud/issues/512))
([8157f9a](8157f9a250))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-06-11 16:28:36 +02:00
Jonas L
8157f9a250
feat!: drop support for ansible-core 2.14 (#512)
##### SUMMARY

ansible-core 2.14 is EOL since 20 May 2024.

https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
2024-06-11 16:21:03 +02:00
Hetzner Cloud Bot
b42ebac72d
chore(main): release 3.1.1 (#497)
🤖 I have created a release *beep* *boop*
---


##
[3.1.1](https://github.com/ansible-collections/hetzner.hcloud/compare/3.1.0...3.1.1)
(2024-04-16)


### Bug Fixes

* **inventory:** ensure host ipv6 variable is json serializable
([#496](https://github.com/ansible-collections/hetzner.hcloud/issues/496))
([a98cf72](a98cf72f92))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-04-16 12:27:43 +02:00
Jonas L
a98cf72f92
fix(inventory): ensure host ipv6 variable is json serializable (#496)
##### SUMMARY

Fix https://github.com/ansible-collections/hetzner.hcloud/issues/495
Related to
https://github.com/ansible-collections/hetzner.hcloud/pull/477

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME
inventory
2024-04-16 11:48:03 +02:00
Hetzner Cloud Bot
fd58b559cf
chore(main): release 3.1.0 (#460)
🤖 I have created a release *beep* *boop*
---


##
[3.1.0](https://github.com/ansible-collections/hetzner.hcloud/compare/3.0.0...3.1.0)
(2024-04-15)


### Features

* assign primary ip to a server on create
([#465](https://github.com/ansible-collections/hetzner.hcloud/issues/465))
([51afb23](51afb23166))
* rename server `image_allow_deprecated` option
([#487](https://github.com/ansible-collections/hetzner.hcloud/issues/487))
([d88ecdb](d88ecdbccc))
* use resources name or ID in server module arguments
([#484](https://github.com/ansible-collections/hetzner.hcloud/issues/484))
([7fdefcf](7fdefcfa02))


### Bug Fixes

* improve actions waiting timeout based on data
([#488](https://github.com/ansible-collections/hetzner.hcloud/issues/488))
([0709552](07095529a4))
* return sorted `alias_ips` in `server_network` module
([#458](https://github.com/ansible-collections/hetzner.hcloud/issues/458))
([1ae6769](1ae6769210))
* use empty string to remove server from its placement group
([#489](https://github.com/ansible-collections/hetzner.hcloud/issues/489))
([00a4fdd](00a4fdd58a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-04-15 12:26:31 +02:00
Jonas L
00a4fdd58a
fix: use empty string to remove server from its placement group (#489)
##### SUMMARY
- Do not remove the server from its placement group when the
`placement_group` argument is not specified.
- Pass an empty string to the `placement_group` argument to remove a
server from its placement group.
2024-04-04 16:53:32 +02:00
Jonas L
d88ecdbccc
feat: rename server image_allow_deprecated option (#487)
##### SUMMARY

Renamed the `allow_deprecated_image` to `image_allow_deprecated`
argument to ensure the `image` related options use the same namespace.

This is backward compatible, as we introduce a new alias for the old
option name.
2024-04-04 12:40:24 +02:00
Jonas L
7fdefcfa02
feat: use resources name or ID in server module arguments (#484)
##### SUMMARY

- Allow passing either the name or the ID of a resource to the different
arguments of the server module.
- Split the code into multiple smaller function and improve the code.
- Improve the module arguments documentation.
- Refactor and cleanups.
2024-04-04 11:54:41 +02:00
jjeff07
51afb23166
feat: assign primary ip to a server on create (#465)
##### SUMMARY

Fixes #464 

##### ISSUE TYPE
- Feature Pull Request

##### COMPONENT NAME
primary_ip

---------

Co-authored-by: jo <ljonas@riseup.net>
2024-03-11 18:20:30 +01:00
Jonas L
1ae6769210
fix: return sorted alias_ips in server_network module (#458)
##### SUMMARY

- test: use testing framework for server_network integration tests
- fix: return sorted alias_ips in server_network module

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server_network
2024-02-07 11:45:37 +01:00
Hetzner Cloud Bot
4db57dcf22
chore(main): release 3.0.0 (#451)
🤖 I have created a release *beep* *boop*
---


##
[3.0.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.5.0...3.0.0)
(2024-02-05)


### ⚠ BREAKING CHANGES

* drop support for ansible-core 2.13
([#450](https://github.com/ansible-collections/hetzner.hcloud/issues/450))
* always return iso-8601 formatted date time
([#453](https://github.com/ansible-collections/hetzner.hcloud/issues/453))
* remove inventory `api_token_env` option
([#454](https://github.com/ansible-collections/hetzner.hcloud/issues/454))

### Features

* drop support for ansible-core 2.13
([#450](https://github.com/ansible-collections/hetzner.hcloud/issues/450))
([96f8009](96f8009214)),
closes
[#400](https://github.com/ansible-collections/hetzner.hcloud/issues/400)
* **inventory:** allow templating instances hostname
([#455](https://github.com/ansible-collections/hetzner.hcloud/issues/455))
([be404ef](be404ef181))
* remove inventory `api_token_env` option
([#454](https://github.com/ansible-collections/hetzner.hcloud/issues/454))
([d0c82ae](d0c82aec86))


### Bug Fixes

* allow renaming networks
([#449](https://github.com/ansible-collections/hetzner.hcloud/issues/449))
([742cfe6](742cfe6d74))
* always return iso-8601 formatted date time
([#453](https://github.com/ansible-collections/hetzner.hcloud/issues/453))
([55d2616](55d26162b3))
* load balancer invalid cookie lifetime value returned
([#452](https://github.com/ansible-collections/hetzner.hcloud/issues/452))
([86b7662](86b76620da))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-05 16:19:20 +01:00
Jonas L
be404ef181
feat(inventory): allow templating instances hostname (#455)
##### SUMMARY

Adds a `hostname` option that allow the user to pass a template to add a
prefix or use the hostvars to build the hostname.

For example:
```yml
plugin: hetzner.hcloud.hcloud

hostname: "hcloud-{{ location }}-{{ name }}"
```

OR with a hostvars_prefix:
```yml
plugin: hetzner.hcloud.hcloud

hostvars_prefix: hcloud_
hostname: "hcloud-{{ hcloud_location }}-{{ hcloud_name }}"
```

Fixes #115

##### ISSUE TYPE

- Feature Pull Request

##### COMPONENT NAME

inventory
2024-02-05 14:32:01 +01:00
Jonas L
96f8009214
feat!: drop support for ansible-core 2.13 (#450)
##### SUMMARY

ansible-core 2.13 is EOL since 6 November 2023.

Fixes #400


https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
2024-02-05 14:26:04 +01:00
Jonas L
55d26162b3
fix!: always return iso-8601 formatted date time (#453)
##### SUMMARY

Fixes #91

Always return datetime as iso-8601 formatted strings.


##### ISSUE TYPE

- Bugfix Pull Request
2024-02-05 12:18:53 +01:00
Jonas L
d0c82aec86
feat!: remove inventory api_token_env option (#454)
##### SUMMARY

Remove the previously deprecated `api_token_env` to fully leverage the
ansible inventory options loader.

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

inventory
2024-02-05 12:18:39 +01:00
Jonas L
86b76620da
fix: load balancer invalid cookie lifetime value returned (#452)
##### SUMMARY

The load balancer cookie lifetime field now returns the cookie lifetime
value, instead of the cookie name.

##### ISSUE TYPE

- Bugfix Pull Request

##### COMPONENT NAME

load_balancer_info
load_balancer_service
2024-02-05 09:00:26 +01:00
Jonas L
742cfe6d74
fix: allow renaming networks (#449)
##### SUMMARY

The network could not be renamed before. This was discovered while
working on #448

##### ISSUE TYPE


- Feature Pull Request


##### COMPONENT NAME

network
2024-02-02 12:53:54 +01:00
Hetzner Cloud Bot
3d689aa992
chore(main): release 2.5.0 (#419)
🤖 I have created a release *beep* *boop*
---


##
[2.5.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.4.1...2.5.0)
(2024-02-02)


### Features

* add `hostvars_prefix` and `hostvars_suffix` options to inventory
hostvars
([#423](https://github.com/ansible-collections/hetzner.hcloud/issues/423))
([4e3f89a](4e3f89aed3))
* allow forcing the deletion of firewalls that are still in use
([#447](https://github.com/ansible-collections/hetzner.hcloud/issues/447))
([559d315](559d31561a))
* improve firewall resources management
([#324](https://github.com/ansible-collections/hetzner.hcloud/issues/324))
([2757fe7](2757fe745f))
* replace `ansible.netcommon` utils with python3 `ipaddress` module
([#416](https://github.com/ansible-collections/hetzner.hcloud/issues/416))
([4cfdf50](4cfdf50b26))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-02 10:45:50 +01:00
Jonas L
559d31561a
feat: allow forcing the deletion of firewalls that are still in use (#447)
##### SUMMARY

  - Do not silence 'firewall still in use' deletions errors.
  - Allow forcing the deletion of a firewall that is still in use.

Fixes #380

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

firewall
2024-02-02 09:48:56 +01:00
Jonas L
2757fe745f
feat: improve firewall resources management (#324)
##### SUMMARY

  - firewall - Return resources the firewall is `applied_to`.
- firewall_info - Add new `firewall_info` module to gather firewalls
info.
- firewall_resource - Add new `firewall_resource` module to manage
firewalls resources.

Fixes #111

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

firewall
firewall_info
firewall_resource

---------

Co-authored-by: Julian Tölle <julian.toelle97@gmail.com>
2024-02-01 16:50:13 +01:00