mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
##### SUMMARY This simplifies the name of the modules from `hetzner.hcloud.hcloud_firewall` to `hetzner.hcloud.firewall`. While maintaining backward compatibility with the old names. Further changes such as updating the test or the documentation will be done in a future PR to maintain the git history when squashing the PRs. ##### ISSUE TYPE - Feature Pull Request
33 lines
923 B
YAML
33 lines
923 B
YAML
---
|
|
- name: Create test_server
|
|
hetzner.hcloud.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.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.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.hcloud_load_balancer_service:
|
|
load_balancer: "{{ hcloud_load_balancer_name }}"
|
|
protocol: "http"
|
|
listen_port: 80
|
|
state: present
|
|
register: test_load_balancer_service
|