1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
hetzner.hcloud/tests/integration/targets/rdns/tasks/prepare.yml
Jonas L. c6d7121e9e
test: ensure location is used for tests (#541)
##### SUMMARY

Make sure that the tests uses the `hcloud_location_name` variable for
the tests.
2024-08-06 11:59:31 +02:00

33 lines
911 B
YAML

---
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: "{{ hcloud_server_type_name }}"
image: "{{ hcloud_image_name }}"
location: "{{ hcloud_location_name }}"
state: present
register: test_server
- name: Create test_primary_ip
hetzner.hcloud.primary_ip:
name: "{{ hcloud_primary_ip_name }}"
type: ipv4
datacenter: "{{ hcloud_datacenter_name }}"
state: present
register: test_primary_ip
- name: Create test_floating_ip
hetzner.hcloud.floating_ip:
name: "{{ hcloud_floating_ip_name }}"
type: ipv4
home_location: "{{ hcloud_location_name }}"
state: present
register: test_floating_ip
- name: Create test_load_balancer
hetzner.hcloud.load_balancer:
name: "{{ hcloud_load_balancer_name }}"
load_balancer_type: lb11
network_zone: eu-central
state: present
register: test_load_balancer