mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY - Implement the new testing framework (prepare.yml/cleanup.yml #239) - Fix some uncovered test scenarios (related to #298). - Structure all the *_info tests using the following structure: ``` gather all [gather all with custom options...] gather all in check mode gather with id gather with name gather with labels [gather with custom option...] ```
23 lines
565 B
YAML
23 lines
565 B
YAML
---
|
|
- name: Create test_network
|
|
hetzner.hcloud.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.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_route
|
|
hetzner.hcloud.hcloud_route:
|
|
network: "{{ hcloud_network_name }}"
|
|
destination: 10.0.3.0/24
|
|
gateway: 10.0.2.1
|
|
register: test_route
|