Debian Codegraph @

ansible_collections/hetzner/hcloud/tests/integration/targets/load_balancer_info/tasks/prepare.yml

raw symbols SCIP
1 ---
2 - name: Create test_server
3 hetzner.hcloud.server:
4 name: "{{ hcloud_server_name }}"
5 server_type: "{{ hcloud_server_type_name }}"
6 image: "{{ hcloud_image_name }}"
7 location: "{{ hcloud_location_name }}"
8 state: created
9 register: test_server
10
11 - name: Create test_load_balancer
12 hetzner.hcloud.load_balancer:
13 name: "{{ hcloud_load_balancer_name }}"
14 load_balancer_type: lb11
15 network_zone: "{{ hcloud_network_zone_name }}"
16 labels:
17 key: value
18 register: test_load_balancer
19
20 - name: Create test_load_balancer_target
21 hetzner.hcloud.load_balancer_target:
22 type: "server"
23 load_balancer: "{{ hcloud_load_balancer_name }}"
24 server: "{{ hcloud_server_name }}"
25 state: present
26 register: test_load_balancer_target
27
28 - name: Create test_load_balancer_service
29 hetzner.hcloud.load_balancer_service:
30 load_balancer: "{{ hcloud_load_balancer_name }}"
31 protocol: "http"
32 listen_port: 80
33 state: present
34 register: test_load_balancer_service