mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY - Implement the new testing framework (prepare.yml/cleanup.yml #239) - Fix some uncovered test scenarios (related to #298). - Structure all the *_info tests using the following structure: ``` gather all [gather all with custom options...] gather all in check mode gather with id gather with name gather with labels [gather with custom option...] ```
22 lines
505 B
YAML
22 lines
505 B
YAML
---
|
|
- name: Create test_server
|
|
hetzner.hcloud.hcloud_server:
|
|
name: "{{ hcloud_server_name }}"
|
|
server_type: cx11
|
|
image: ubuntu-22.04
|
|
state: started
|
|
labels:
|
|
key: value
|
|
register: test_server
|
|
|
|
- name: Create test_server2 (stopped + without ip)
|
|
hetzner.hcloud.hcloud_server:
|
|
name: "{{ hcloud_server_name }}2"
|
|
server_type: cx11
|
|
image: ubuntu-22.04
|
|
state: stopped
|
|
labels:
|
|
key: value
|
|
enable_ipv4: false
|
|
enable_ipv6: false
|
|
register: test_server2
|