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

docs: add note that server.user_data is used by cloud-init (#786)

##### SUMMARY
I was looking for "cloud" or "cloud-init" within the documentation
without any luck. Maybe this will help someone else finding the
appropriate option.

##### ISSUE TYPE
- Docs Pull Request

##### COMPONENT NAME
`hetzner.hcloud.server`

---------

Co-authored-by: Jonas L. <jooola@users.noreply.github.com>
This commit is contained in:
Florian Weber 2026-01-13 14:22:04 +01:00 committed by GitHub
parent cfa0d181f7
commit e4512d8733
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,6 +125,7 @@ options:
user_data:
description:
- User Data to be passed to the server on creation.
- C(cloud-init), C(ignition) or similar provisioning tools may retrieve user configuration from the Server's C(user_data).
- Only used during the server creation.
type: str
rescue_mode:
@ -178,6 +179,16 @@ EXAMPLES = """
- me@myorganisation
state: present
- name: Create a basic server with additional cloud-init data disabling SSH password authentication
hetzner.hcloud.server:
name: my-server
server_type: cpx22
image: ubuntu-22.04
user_data: |
#cloud-config
ssh_pwauth: false
state: present
- name: Resize an existing server
hetzner.hcloud.server:
name: my-server