mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
chore: replace deprecated server type with cx22 (#510)
Learn more: https://docs.hetzner.cloud/changelog#2024-06-06-old-server-types-with-shared-intel-vcpus-are-deprecated - Updated docs with newer server types - Use ARM server type for tests
This commit is contained in:
parent
0dc857830d
commit
fb8c2a9f58
28 changed files with 56 additions and 56 deletions
|
@ -23,7 +23,7 @@ Alternatively, you may provide the API token directly as module argument:
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
api_token: LRK9DAWQ1ZAEFSrCNEEzLCUwhYX1U3g7wMg4dTlkkDC96fyDuyJ39nVbVjCKSDfj
|
api_token: LRK9DAWQ1ZAEFSrCNEEzLCUwhYX1U3g7wMg4dTlkkDC96fyDuyJ39nVbVjCKSDfj
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
@ -45,6 +45,6 @@ example if you want to store your API token in a vault:
|
||||||
- name: Create server
|
- name: Create server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
- name: Create servers
|
- name: Create servers
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
labels:
|
labels:
|
||||||
kind: runners
|
kind: runners
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
- name: Create servers without public IPs
|
- name: Create servers without public IPs
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
enable_ipv4: false
|
enable_ipv4: false
|
||||||
enable_ipv6: false
|
enable_ipv6: false
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
- name: Create a server
|
- name: Create a server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
location: fsn1
|
location: fsn1
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
- name: Create new server
|
- name: Create new server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
|
|
||||||
- name: Refresh inventory
|
- name: Refresh inventory
|
||||||
|
|
|
@ -134,7 +134,7 @@ plugin: hetzner.hcloud.hcloud
|
||||||
locations:
|
locations:
|
||||||
- nbg1
|
- nbg1
|
||||||
types:
|
types:
|
||||||
- cx11
|
- cx22
|
||||||
status:
|
status:
|
||||||
- running
|
- running
|
||||||
|
|
||||||
|
@ -163,8 +163,8 @@ plugin: hetzner.hcloud.hcloud
|
||||||
# foo: "bar"
|
# foo: "bar"
|
||||||
# status: "running"
|
# status: "running"
|
||||||
## Server Type
|
## Server Type
|
||||||
# type: "cx11"
|
# type: "cx22"
|
||||||
# server_type: "cx11"
|
# server_type: "cx22"
|
||||||
# architecture: "x86"
|
# architecture: "x86"
|
||||||
## Image
|
## Image
|
||||||
# image_id: 114690387
|
# image_id: 114690387
|
||||||
|
|
|
@ -113,7 +113,7 @@ hcloud_load_balancer:
|
||||||
description: Name of the Load Balancer type of the Load Balancer
|
description: Name of the Load Balancer type of the Load Balancer
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx11
|
sample: cx22
|
||||||
algorithm:
|
algorithm:
|
||||||
description: Algorithm of the Load Balancer.
|
description: Algorithm of the Load Balancer.
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
@ -73,7 +73,7 @@ hcloud_load_balancer_info:
|
||||||
description: Name of the Load Balancer type of the Load Balancer
|
description: Name of the Load Balancer type of the Load Balancer
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx11
|
sample: cx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the Load Balancer
|
description: Public IPv4 address of the Load Balancer
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
@ -138,7 +138,7 @@ hcloud_network_info:
|
||||||
description: Name of the server type of the server
|
description: Name of the server type of the server
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx11
|
sample: cx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the server, None if not existing
|
description: Public IPv4 address of the server, None if not existing
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
@ -161,14 +161,14 @@ EXAMPLES = """
|
||||||
- name: Create a basic server
|
- name: Create a basic server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create a basic server with ssh key
|
- name: Create a basic server with ssh key
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx11
|
server_type: cx22
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
location: fsn1
|
location: fsn1
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
|
@ -178,7 +178,7 @@ EXAMPLES = """
|
||||||
- name: Resize an existing server
|
- name: Resize an existing server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx21
|
server_type: cx32
|
||||||
upgrade_disk: true
|
upgrade_disk: true
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ hcloud_server:
|
||||||
description: Name of the server type of the server
|
description: Name of the server type of the server
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx11
|
sample: cx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the server
|
description: Public IPv4 address of the server
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
@ -78,7 +78,7 @@ hcloud_server_info:
|
||||||
description: Name of the server type of the server
|
description: Name of the server type of the server
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx11
|
sample: cx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the server
|
description: Public IPv4 address of the server
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
register: test_server
|
register: test_server
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
labels:
|
labels:
|
||||||
firewall: "{{ hcloud_firewall_name }}"
|
firewall: "{{ hcloud_firewall_name }}"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
labels:
|
labels:
|
||||||
key: value
|
key: value
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
- name: setup server
|
- name: setup server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
location: "fsn1"
|
location: "fsn1"
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
- name: setup another server
|
- name: setup another server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}2"
|
name: "{{ hcloud_server_name }}2"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
register: main_server2
|
register: main_server2
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
register: test_server
|
register: test_server
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
register: test_server
|
register: test_server
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
- name: setup server
|
- name: setup server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{hcloud_server_name}}"
|
name: "{{hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
location: "fsn1"
|
location: "fsn1"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
enable_ipv4: false
|
enable_ipv4: false
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: present
|
state: present
|
||||||
register: test_server
|
register: test_server
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- name: test create server with check mode
|
- name: test create server with check mode
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: present
|
state: present
|
||||||
register: result
|
register: result
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
- name: test create server
|
- name: test create server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name}}"
|
name: "{{ hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
enable_ipv6: False
|
enable_ipv6: False
|
||||||
state: started
|
state: started
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
that:
|
that:
|
||||||
- main_server is changed
|
- main_server is changed
|
||||||
- main_server.hcloud_server.name == hcloud_server_name
|
- main_server.hcloud_server.name == hcloud_server_name
|
||||||
- main_server.hcloud_server.server_type == "cx11"
|
- main_server.hcloud_server.server_type == "cax11"
|
||||||
- main_server.hcloud_server.status == "running"
|
- main_server.hcloud_server.status == "running"
|
||||||
- main_server.root_password != ""
|
- main_server.root_password != ""
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
- name: test resize server running without force
|
- name: test resize server running without force
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: "cx21"
|
server_type: "cax21"
|
||||||
state: present
|
state: present
|
||||||
register: result
|
register: result
|
||||||
check_mode: true
|
check_mode: true
|
||||||
|
@ -116,12 +116,12 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- result is changed
|
- result is changed
|
||||||
- result.hcloud_server.server_type == "cx11"
|
- result.hcloud_server.server_type == "cax11"
|
||||||
|
|
||||||
- name: test resize server with check mode
|
- name: test resize server with check mode
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: "cx21"
|
server_type: "cax21"
|
||||||
state: stopped
|
state: stopped
|
||||||
register: result
|
register: result
|
||||||
check_mode: true
|
check_mode: true
|
||||||
|
@ -133,19 +133,19 @@
|
||||||
- name: test resize server without disk
|
- name: test resize server without disk
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: "cx21"
|
server_type: "cax21"
|
||||||
state: stopped
|
state: stopped
|
||||||
register: result
|
register: result
|
||||||
- name: verify resize server without disk
|
- name: verify resize server without disk
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- result is changed
|
- result is changed
|
||||||
- result.hcloud_server.server_type == "cx21"
|
- result.hcloud_server.server_type == "cax21"
|
||||||
|
|
||||||
- name: test resize server idempotence
|
- name: test resize server idempotence
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: "cx21"
|
server_type: "cax21"
|
||||||
state: stopped
|
state: stopped
|
||||||
register: result
|
register: result
|
||||||
- name: verify resize server idempotence
|
- name: verify resize server idempotence
|
||||||
|
@ -156,19 +156,19 @@
|
||||||
- name: test resize server to smaller plan
|
- name: test resize server to smaller plan
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: "cx11"
|
server_type: "cax11"
|
||||||
state: stopped
|
state: stopped
|
||||||
register: result
|
register: result
|
||||||
- name: verify resize server to smaller plan
|
- name: verify resize server to smaller plan
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- result is changed
|
- result is changed
|
||||||
- result.hcloud_server.server_type == "cx11"
|
- result.hcloud_server.server_type == "cax11"
|
||||||
|
|
||||||
- name: test resize server with disk
|
- name: test resize server with disk
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: "cx21"
|
server_type: "cax21"
|
||||||
upgrade_disk: true
|
upgrade_disk: true
|
||||||
state: stopped
|
state: stopped
|
||||||
register: result
|
register: result
|
||||||
|
@ -176,7 +176,7 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- result is changed
|
- result is changed
|
||||||
- result.hcloud_server.server_type == "cx21"
|
- result.hcloud_server.server_type == "cax21"
|
||||||
|
|
||||||
- name: test enable backups with check mode
|
- name: test enable backups with check mode
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
|
@ -360,7 +360,7 @@
|
||||||
- name: test create server with ssh key
|
- name: test create server with ssh key
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name}}"
|
name: "{{ hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: "ubuntu-22.04"
|
image: "ubuntu-22.04"
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- "{{ hcloud_ssh_key_name }}"
|
- "{{ hcloud_ssh_key_name }}"
|
||||||
|
@ -371,7 +371,7 @@
|
||||||
that:
|
that:
|
||||||
- main_server is changed
|
- main_server is changed
|
||||||
- main_server.hcloud_server.name == hcloud_server_name
|
- main_server.hcloud_server.name == hcloud_server_name
|
||||||
- main_server.hcloud_server.server_type == "cx11"
|
- main_server.hcloud_server.server_type == "cax11"
|
||||||
- main_server.hcloud_server.status == "running"
|
- main_server.hcloud_server.status == "running"
|
||||||
- main_server.root_password != ""
|
- main_server.root_password != ""
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@
|
||||||
- name: test create server with rescue_mode
|
- name: test create server with rescue_mode
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name}}"
|
name: "{{ hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: "ubuntu-22.04"
|
image: "ubuntu-22.04"
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- "{{ hcloud_ssh_key_name }}"
|
- "{{ hcloud_ssh_key_name }}"
|
||||||
|
@ -453,7 +453,7 @@
|
||||||
that:
|
that:
|
||||||
- main_server is changed
|
- main_server is changed
|
||||||
- main_server.hcloud_server.name == hcloud_server_name
|
- main_server.hcloud_server.name == hcloud_server_name
|
||||||
- main_server.hcloud_server.server_type == "cx11"
|
- main_server.hcloud_server.server_type == "cax11"
|
||||||
- main_server.hcloud_server.status == "running"
|
- main_server.hcloud_server.status == "running"
|
||||||
- main_server.root_password != ""
|
- main_server.root_password != ""
|
||||||
- main_server.hcloud_server.rescue_enabled is sameas true
|
- main_server.hcloud_server.rescue_enabled is sameas true
|
||||||
|
@ -470,7 +470,7 @@
|
||||||
- name: test create server with labels
|
- name: test create server with labels
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name}}"
|
name: "{{ hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: "ubuntu-22.04"
|
image: "ubuntu-22.04"
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- "{{ hcloud_ssh_key_name }}"
|
- "{{ hcloud_ssh_key_name }}"
|
||||||
|
@ -489,7 +489,7 @@
|
||||||
- name: test update server with labels
|
- name: test update server with labels
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name}}"
|
name: "{{ hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: "ubuntu-22.04"
|
image: "ubuntu-22.04"
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- "{{ hcloud_ssh_key_name }}"
|
- "{{ hcloud_ssh_key_name }}"
|
||||||
|
@ -508,7 +508,7 @@
|
||||||
- name: test update server with labels in other order
|
- name: test update server with labels in other order
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name}}"
|
name: "{{ hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: "ubuntu-22.04"
|
image: "ubuntu-22.04"
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- "{{ hcloud_ssh_key_name }}"
|
- "{{ hcloud_ssh_key_name }}"
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
- name: test create server with not existing image
|
- name: test create server with not existing image
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: my-not-existing-image-20.04
|
image: my-not-existing-image-20.04
|
||||||
state: present
|
state: present
|
||||||
register: result
|
register: result
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
labels:
|
labels:
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
- name: Create test_server2 (stopped + without ip)
|
- name: Create test_server2 (stopped + without ip)
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}2"
|
name: "{{ hcloud_server_name }}2"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
- name: Create test_server
|
- name: Create test_server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
register: test_server
|
register: test_server
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Copyright: (c) 2019, Hetzner Cloud GmbH <info@hetzner-cloud.de>
|
# Copyright: (c) 2019, Hetzner Cloud GmbH <info@hetzner-cloud.de>
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
---
|
---
|
||||||
hcloud_server_type_name: cx11
|
hcloud_server_type_name: cax11
|
||||||
hcloud_server_type_id: 1
|
hcloud_server_type_id: 45
|
||||||
|
|
||||||
hcloud_server_type_id_deprecated: 2 # cx11-ceph
|
hcloud_server_type_id_deprecated: 2 # cx11-ceph
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- result.hcloud_server_type_info | list | count == 1
|
- result.hcloud_server_type_info | list | count == 1
|
||||||
- result.hcloud_server_type_info[0].deprecation is none # fails if cx11 is ever deprecated
|
- result.hcloud_server_type_info[0].deprecation is none # fails if cax11 is ever deprecated
|
||||||
|
|
||||||
- name: Gather hcloud_server_type_info with wrong id
|
- name: Gather hcloud_server_type_info with wrong id
|
||||||
hetzner.hcloud.server_type_info:
|
hetzner.hcloud.server_type_info:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
- name: test create server with ssh key
|
- name: test create server with ssh key
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ hcloud_server_name }}"
|
name: "{{ hcloud_server_name }}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: "ubuntu-22.04"
|
image: "ubuntu-22.04"
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- "{{ hcloud_ssh_key_name }}"
|
- "{{ hcloud_ssh_key_name }}"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
- name: setup server
|
- name: setup server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{hcloud_server_name}}"
|
name: "{{hcloud_server_name}}"
|
||||||
server_type: cx11
|
server_type: cax11
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: stopped
|
state: stopped
|
||||||
location: "fsn1"
|
location: "fsn1"
|
||||||
|
|
Loading…
Reference in a new issue