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
2024-06-11 15:30:47 +02:00

32 lines
784 B
YAML

---
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cax11
image: ubuntu-22.04
state: present
register: test_server
- name: Create test_primary_ip
hetzner.hcloud.primary_ip:
name: "{{ hcloud_primary_ip_name }}"
type: ipv4
datacenter: fsn1-dc14
state: present
register: test_primary_ip
- name: Create test_floating_ip
hetzner.hcloud.floating_ip:
name: "{{ hcloud_floating_ip_name }}"
type: ipv4
home_location: fsn1
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