mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY Update all references to modules to use the new module names. Continuation of #390
33 lines
895 B
YAML
33 lines
895 B
YAML
---
|
|
- name: Create test_server
|
|
hetzner.hcloud.server:
|
|
name: "{{ hcloud_server_name }}"
|
|
server_type: cx11
|
|
image: ubuntu-22.04
|
|
state: started
|
|
register: test_server
|
|
|
|
- name: Create test_load_balancer
|
|
hetzner.hcloud.load_balancer:
|
|
name: "{{ hcloud_load_balancer_name }}"
|
|
load_balancer_type: lb11
|
|
network_zone: eu-central
|
|
labels:
|
|
key: value
|
|
register: test_load_balancer
|
|
|
|
- name: Create test_load_balancer_target
|
|
hetzner.hcloud.load_balancer_target:
|
|
type: "server"
|
|
load_balancer: "{{ hcloud_load_balancer_name }}"
|
|
server: "{{ hcloud_server_name }}"
|
|
state: present
|
|
register: test_load_balancer_target
|
|
|
|
- name: Create test_load_balancer_service
|
|
hetzner.hcloud.load_balancer_service:
|
|
load_balancer: "{{ hcloud_load_balancer_name }}"
|
|
protocol: "http"
|
|
listen_port: 80
|
|
state: present
|
|
register: test_load_balancer_service
|