1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

test: use shared network zone variable (#543)

##### SUMMARY

Allow to easily update the network zone when changing the location, for
testing.
This commit is contained in:
Jonas L. 2024-08-06 12:50:58 +02:00 committed by GitHub
parent c6d7121e9e
commit 87ad95a0ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 90 additions and 21 deletions

View file

@ -468,6 +468,7 @@
assert:
that:
- result is success
- name: test create server with labels
hetzner.hcloud.server:
name: "{{ hcloud_server_name}}"

View file

@ -26,7 +26,7 @@
hetzner.hcloud.subnetwork:
network: "{{ hcloud_network_name }}-1"
ip_range: 192.168.0.0/24
network_zone: eu-central
network_zone: "{{ hcloud_network_zone_name }}"
type: cloud
state: present
@ -34,7 +34,7 @@
hetzner.hcloud.subnetwork:
network: "{{ hcloud_network_name }}-1"
ip_range: 192.168.1.0/24
network_zone: eu-central
network_zone: "{{ hcloud_network_zone_name }}"
type: cloud
state: present
@ -48,7 +48,7 @@
hetzner.hcloud.subnetwork:
network: "{{ hcloud_network_name }}-2"
ip_range: 192.168.2.0/24
network_zone: eu-central
network_zone: "{{ hcloud_network_zone_name }}"
type: cloud
state: present
@ -56,7 +56,7 @@
hetzner.hcloud.subnetwork:
network: "{{ hcloud_network_name }}-2"
ip_range: 192.168.3.0/24
network_zone: eu-central
network_zone: "{{ hcloud_network_zone_name }}"
type: cloud
state: present