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

Add example: Create server with cloud-init

Added cloud-init data to disable SSH password authentication.
This commit is contained in:
Florian Weber 2026-01-12 18:14:43 +01:00 committed by GitHub
parent 3f608933be
commit a7439570cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,6 +178,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