mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### 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>
18 lines
516 B
YAML
18 lines
516 B
YAML
---
|
|
- name: Create test_server
|
|
hetzner.hcloud.server:
|
|
name: "{{ hcloud_server_name }}"
|
|
server_type: "{{ hcloud_server_type_name }}"
|
|
image: "{{ hcloud_image_name }}"
|
|
location: "{{ hcloud_location_name }}"
|
|
state: created
|
|
register: test_server
|
|
|
|
- name: Create test_load_balancer
|
|
hetzner.hcloud.load_balancer:
|
|
name: "{{ hcloud_load_balancer_name }}"
|
|
load_balancer_type: lb11
|
|
network_zone: "{{ hcloud_network_zone_name }}"
|
|
labels:
|
|
key: value
|
|
register: test_load_balancer
|