mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
test: ensure location is used for tests (#541)
##### SUMMARY Make sure that the tests uses the `hcloud_location_name` variable for the tests.
This commit is contained in:
parent
0b8b44ec4c
commit
c6d7121e9e
13 changed files with 19 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
name: "{{ hcloud_server_name }}"
|
||||
server_type: "{{ hcloud_server_type_name }}"
|
||||
image: "{{ hcloud_image_name }}"
|
||||
location: "{{ hcloud_location_name }}"
|
||||
state: present
|
||||
register: result
|
||||
check_mode: true
|
||||
|
|
@ -16,6 +17,7 @@
|
|||
name: "{{ hcloud_server_name}}"
|
||||
server_type: "{{ hcloud_server_type_name }}"
|
||||
image: "{{ hcloud_image_name }}"
|
||||
location: "{{ hcloud_location_name }}"
|
||||
enable_ipv6: False
|
||||
state: started
|
||||
register: main_server
|
||||
|
|
@ -441,6 +443,7 @@
|
|||
name: "{{ hcloud_server_name}}"
|
||||
server_type: "{{ hcloud_server_type_name }}"
|
||||
image: "{{ hcloud_image_name }}"
|
||||
location: "{{ hcloud_location_name }}"
|
||||
ssh_keys:
|
||||
- "{{ hcloud_ssh_key_name }}"
|
||||
rescue_mode: "linux64"
|
||||
|
|
@ -470,6 +473,7 @@
|
|||
name: "{{ hcloud_server_name}}"
|
||||
server_type: "{{ hcloud_server_type_name }}"
|
||||
image: "{{ hcloud_image_name }}"
|
||||
location: "{{ hcloud_location_name }}"
|
||||
ssh_keys:
|
||||
- "{{ hcloud_ssh_key_name }}"
|
||||
labels:
|
||||
|
|
@ -563,6 +567,7 @@
|
|||
rebuild_protection: true
|
||||
server_type: "{{ hcloud_server_type_name }}"
|
||||
image: "{{ hcloud_image_name }}"
|
||||
location: "{{ hcloud_location_name }}"
|
||||
ssh_keys:
|
||||
- "{{ hcloud_ssh_key_name }}"
|
||||
state: present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue