1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

test: do not start server where possible (#461)

##### SUMMARY

Reduce test time by not starting servers when not required.
This commit is contained in:
Jonas L 2024-02-08 17:37:47 +01:00 committed by GitHub
parent 703217b36f
commit b0cb1a665b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@
name: "{{ hcloud_server_name }}"
server_type: cx11
image: ubuntu-22.04
state: started
state: stopped
location: "fsn1"
register: main_server
- name: verify setup server
@ -34,7 +34,7 @@
name: "{{ hcloud_server_name }}2"
server_type: cx11
image: ubuntu-22.04
state: started
state: stopped
register: main_server2
- name: verify setup another server
assert:

View file

@ -4,7 +4,7 @@
name: "{{ hcloud_server_name }}"
server_type: cx11
image: ubuntu-22.04
state: started
state: stopped
register: test_server
- name: Create test_load_balancer

View file

@ -6,7 +6,7 @@
name: "{{hcloud_server_name}}"
server_type: cx11
image: ubuntu-22.04
state: started
state: stopped
location: "fsn1"
register: server
- name: verify setup server

View file

@ -4,7 +4,7 @@
name: "{{ hcloud_server_name }}"
server_type: cx11
image: ubuntu-22.04
state: started
state: stopped
labels:
key: value
register: test_server

View file

@ -6,7 +6,7 @@
name: "{{hcloud_server_name}}"
server_type: cx11
image: ubuntu-22.04
state: started
state: stopped
location: "fsn1"
register: vol_server
- name: verify setup server