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

feat(server): allow setting user_data for rebuild (#794)

##### SUMMARY
`user_data` is now a supported field for rebuilds.
See
https://docs.hetzner.cloud/changelog#2026-01-16-server-rebuild-with-user-data

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
phm07 2026-01-26 16:15:42 +01:00 committed by GitHub
parent d52e86d944
commit 98ae62ac94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 3 deletions

View file

@ -257,6 +257,10 @@
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
image: "{{ hcloud_image_name }}"
user_data: |
#cloud-config
packages:
- curl
state: rebuild
register: result_after_test
- name: verify rebuild server