mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY Allow to easily update the network zone when changing the location, for testing.
23 lines
566 B
YAML
23 lines
566 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: "{{ hcloud_network_zone_name }}"
|
|
ip_range: 10.0.1.0/24
|
|
register: test_subnetwork
|
|
|
|
- name: Create test_route
|
|
hetzner.hcloud.route:
|
|
network: "{{ hcloud_network_name }}"
|
|
destination: 10.0.3.0/24
|
|
gateway: 10.0.2.1
|
|
register: test_route
|