mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY The vswitch subnet validation changed: the subnet ip_range must be smaller than the network ip_range **AND** must not start with the same IP. See https://github.com/ansible-collections/hetzner.hcloud/runs/17672011247 In addition, I reworked the tests to use the new testing framework.
11 lines
306 B
YAML
11 lines
306 B
YAML
---
|
|
- name: Create test_network
|
|
hetzner.hcloud.hcloud_network:
|
|
name: "{{ hcloud_network_name }}"
|
|
ip_range: "10.0.0.0/16"
|
|
state: present
|
|
register: test_network
|
|
|
|
- name: Select hetzner vswitch id from pool
|
|
ansible.builtin.set_fact:
|
|
test_vswitch_id: "{{ hetzner_vswitch_ids | random }}"
|