mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY Use shared variables to store information about which server type, image or location to use for our integrations tests. - The location was changed from FSN to HEL. - The image was changed from ubuntu-22.04 to debian-12.
24 lines
597 B
YAML
24 lines
597 B
YAML
---
|
|
- name: Create test_network
|
|
hetzner.hcloud.network:
|
|
name: "{{ hcloud_network_name }}"
|
|
ip_range: 10.0.0.0/16
|
|
labels:
|
|
key: value
|
|
register: test_network
|
|
|
|
- name: Create test_subnetwork
|
|
hetzner.hcloud.subnetwork:
|
|
network: "{{ hcloud_network_name }}"
|
|
type: server
|
|
network_zone: eu-central
|
|
ip_range: 10.0.1.0/24
|
|
register: test_subnetwork
|
|
|
|
- name: Create test_server
|
|
hetzner.hcloud.server:
|
|
name: "{{ hcloud_server_name }}"
|
|
server_type: "{{ hcloud_server_type_name }}"
|
|
image: "{{ hcloud_image_name }}"
|
|
state: stopped
|
|
register: test_server
|