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:
parent
3f608933be
commit
a7439570cc
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue