mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
refactor: start using new modules names (#393)
##### SUMMARY Update all references to modules to use the new module names. Continuation of #390
This commit is contained in:
parent
933a16249b
commit
328dfb8b0f
95 changed files with 577 additions and 577 deletions
|
|
@ -68,14 +68,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic certificate
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
hetzner.hcloud.certificate:
|
||||
name: my-certificate
|
||||
certificate: -----BEGIN CERTIFICATE-----...
|
||||
private_key: -----BEGIN PRIVATE KEY-----...
|
||||
state: present
|
||||
|
||||
- name: Create a certificate with labels
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
hetzner.hcloud.certificate:
|
||||
name: my-certificate
|
||||
certificate: -----BEGIN CERTIFICATE-----...
|
||||
private_key: -----BEGIN PRIVATE KEY-----...
|
||||
|
|
@ -85,7 +85,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Create a managed certificate
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
hetzner.hcloud.certificate:
|
||||
name: my-certificate
|
||||
type: managed
|
||||
domain_names:
|
||||
|
|
@ -94,7 +94,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the certificate is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
hetzner.hcloud.certificate:
|
||||
name: my-certificate
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud certificate infos
|
||||
hetzner.hcloud.hcloud_certificate_info:
|
||||
hetzner.hcloud.certificate_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud datacenter info
|
||||
hetzner.hcloud.hcloud_datacenter_info:
|
||||
hetzner.hcloud.datacenter_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered info
|
||||
|
|
@ -43,12 +43,12 @@ EXAMPLES = """
|
|||
- name: List available server_types in a datacenter
|
||||
block:
|
||||
- name: Gather a hcloud datacenter
|
||||
hetzner.hcloud.hcloud_datacenter_info:
|
||||
hetzner.hcloud.datacenter_info:
|
||||
name: fsn1-dc14
|
||||
register: output
|
||||
|
||||
- name: Gather a hcloud datacenter available server_types
|
||||
hetzner.hcloud.hcloud_server_type_info:
|
||||
hetzner.hcloud.server_type_info:
|
||||
id: "{{ item }}"
|
||||
loop: "{{ output.hcloud_datacenter_info[0].server_types.available }}"
|
||||
register: available_server_types
|
||||
|
|
|
|||
|
|
@ -80,12 +80,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic firewall
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
hetzner.hcloud.firewall:
|
||||
name: my-firewall
|
||||
state: present
|
||||
|
||||
- name: Create a firewall with rules
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
hetzner.hcloud.firewall:
|
||||
name: my-firewall
|
||||
rules:
|
||||
- direction: in
|
||||
|
|
@ -97,7 +97,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Create a firewall with labels
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
hetzner.hcloud.firewall:
|
||||
name: my-firewall
|
||||
labels:
|
||||
key: value
|
||||
|
|
@ -105,7 +105,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the firewall is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
hetzner.hcloud.firewall:
|
||||
name: my-firewall
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -73,30 +73,30 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic IPv4 Floating IP
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
hetzner.hcloud.floating_ip:
|
||||
name: my-floating-ip
|
||||
home_location: fsn1
|
||||
type: ipv4
|
||||
state: present
|
||||
- name: Create a basic IPv6 Floating IP
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
hetzner.hcloud.floating_ip:
|
||||
name: my-floating-ip
|
||||
home_location: fsn1
|
||||
type: ipv6
|
||||
state: present
|
||||
- name: Assign a Floating IP to a server
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
hetzner.hcloud.floating_ip:
|
||||
name: my-floating-ip
|
||||
server: 1234
|
||||
state: present
|
||||
- name: Assign a Floating IP to another server
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
hetzner.hcloud.floating_ip:
|
||||
name: my-floating-ip
|
||||
server: 1234
|
||||
force: true
|
||||
state: present
|
||||
- name: Floating IP should be absent
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
hetzner.hcloud.floating_ip:
|
||||
name: my-floating-ip
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Floating ip infos
|
||||
hetzner.hcloud.hcloud_floating_ip_info:
|
||||
hetzner.hcloud.floating_ip_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud image infos
|
||||
hetzner.hcloud.hcloud_image_info:
|
||||
hetzner.hcloud.image_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud ISO type infos
|
||||
hetzner.hcloud.hcloud_iso_info:
|
||||
hetzner.hcloud.iso_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic Load Balancer
|
||||
hetzner.hcloud.hcloud_load_balancer:
|
||||
hetzner.hcloud.load_balancer:
|
||||
name: my-Load Balancer
|
||||
load_balancer_type: lb11
|
||||
algorithm: round_robin
|
||||
|
|
@ -81,7 +81,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the Load Balancer is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_load_balancer:
|
||||
hetzner.hcloud.load_balancer:
|
||||
name: my-Load Balancer
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud load_balancer infos
|
||||
hetzner.hcloud.hcloud_load_balancer_info:
|
||||
hetzner.hcloud.load_balancer_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
@ -134,7 +134,7 @@ hcloud_load_balancer_info:
|
|||
use_private_ip:
|
||||
description:
|
||||
- Route the traffic over the private IP of the Load Balancer through a Hetzner Cloud Network.
|
||||
- Load Balancer needs to be attached to a network. See M(hetzner.hcloud.hcloud_load_balancer_network)
|
||||
- Load Balancer needs to be attached to a network. See M(hetzner.hcloud.load_balancer_network)
|
||||
type: bool
|
||||
sample: true
|
||||
returned: always
|
||||
|
|
|
|||
|
|
@ -45,20 +45,20 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic Load Balancer network
|
||||
hetzner.hcloud.hcloud_load_balancer_network:
|
||||
hetzner.hcloud.load_balancer_network:
|
||||
network: my-network
|
||||
load_balancer: my-LoadBalancer
|
||||
state: present
|
||||
|
||||
- name: Create a Load Balancer network and specify the ip address
|
||||
hetzner.hcloud.hcloud_load_balancer_network:
|
||||
hetzner.hcloud.load_balancer_network:
|
||||
network: my-network
|
||||
load_balancer: my-LoadBalancer
|
||||
ip: 10.0.0.1
|
||||
state: present
|
||||
|
||||
- name: Ensure the Load Balancer network is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_load_balancer_network:
|
||||
hetzner.hcloud.load_balancer_network:
|
||||
network: my-network
|
||||
load_balancer: my-LoadBalancer
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -137,14 +137,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic Load Balancer service with Port 80
|
||||
hetzner.hcloud.hcloud_load_balancer_service:
|
||||
hetzner.hcloud.load_balancer_service:
|
||||
load_balancer: my-load-balancer
|
||||
protocol: http
|
||||
listen_port: 80
|
||||
state: present
|
||||
|
||||
- name: Ensure the Load Balancer is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_load_balancer_service:
|
||||
hetzner.hcloud.load_balancer_service:
|
||||
load_balancer: my-Load Balancer
|
||||
protocol: http
|
||||
listen_port: 80
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ options:
|
|||
use_private_ip:
|
||||
description:
|
||||
- Route the traffic over the private IP of the Load Balancer through a Hetzner Cloud Network.
|
||||
- Load Balancer needs to be attached to a network. See M(hetzner.hcloud.hcloud_load_balancer_network)
|
||||
- Load Balancer needs to be attached to a network. See M(hetzner.hcloud.load_balancer_network)
|
||||
type: bool
|
||||
default: False
|
||||
state:
|
||||
|
|
@ -63,28 +63,28 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a server Load Balancer target
|
||||
hetzner.hcloud.hcloud_load_balancer_target:
|
||||
hetzner.hcloud.load_balancer_target:
|
||||
type: server
|
||||
load_balancer: my-LoadBalancer
|
||||
server: my-server
|
||||
state: present
|
||||
|
||||
- name: Create a label_selector Load Balancer target
|
||||
hetzner.hcloud.hcloud_load_balancer_target:
|
||||
hetzner.hcloud.load_balancer_target:
|
||||
type: label_selector
|
||||
load_balancer: my-LoadBalancer
|
||||
label_selector: application=backend
|
||||
state: present
|
||||
|
||||
- name: Create an IP Load Balancer target
|
||||
hetzner.hcloud.hcloud_load_balancer_target:
|
||||
hetzner.hcloud.load_balancer_target:
|
||||
type: ip
|
||||
load_balancer: my-LoadBalancer
|
||||
ip: 127.0.0.1
|
||||
state: present
|
||||
|
||||
- name: Ensure the Load Balancer target is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_load_balancer_target:
|
||||
hetzner.hcloud.load_balancer_target:
|
||||
type: server
|
||||
load_balancer: my-LoadBalancer
|
||||
server: my-server
|
||||
|
|
@ -125,7 +125,7 @@ hcloud_load_balancer_target:
|
|||
use_private_ip:
|
||||
description:
|
||||
- Route the traffic over the private IP of the Load Balancer through a Hetzner Cloud Network.
|
||||
- Load Balancer needs to be attached to a network. See M(hetzner.hcloud.hcloud_load_balancer_network)
|
||||
- Load Balancer needs to be attached to a network. See M(hetzner.hcloud.load_balancer_network)
|
||||
type: bool
|
||||
sample: true
|
||||
returned: always
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Load Balancer type infos
|
||||
hetzner.hcloud.hcloud_load_balancer_type_info:
|
||||
hetzner.hcloud.load_balancer_type_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud location infos
|
||||
hetzner.hcloud.hcloud_location_info:
|
||||
hetzner.hcloud.location_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -60,13 +60,13 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic network
|
||||
hetzner.hcloud.hcloud_network:
|
||||
hetzner.hcloud.network:
|
||||
name: my-network
|
||||
ip_range: 10.0.0.0/8
|
||||
state: present
|
||||
|
||||
- name: Ensure the Network is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_network:
|
||||
hetzner.hcloud.network:
|
||||
name: my-network
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -49,13 +49,13 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic placement group
|
||||
hetzner.hcloud.hcloud_placement_group:
|
||||
hetzner.hcloud.placement_group:
|
||||
name: my-placement-group
|
||||
state: present
|
||||
type: spread
|
||||
|
||||
- name: Create a placement group with labels
|
||||
hetzner.hcloud.hcloud_placement_group:
|
||||
hetzner.hcloud.placement_group:
|
||||
name: my-placement-group
|
||||
type: spread
|
||||
labels:
|
||||
|
|
@ -64,7 +64,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the placement group is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_placement_group:
|
||||
hetzner.hcloud.placement_group:
|
||||
name: my-placement-group
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -65,19 +65,19 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic IPv4 Primary IP
|
||||
hetzner.hcloud.hcloud_primary_ip:
|
||||
hetzner.hcloud.primary_ip:
|
||||
name: my-primary-ip
|
||||
datacenter: fsn1-dc14
|
||||
type: ipv4
|
||||
state: present
|
||||
- name: Create a basic IPv6 Primary IP
|
||||
hetzner.hcloud.hcloud_primary_ip:
|
||||
hetzner.hcloud.primary_ip:
|
||||
name: my-primary-ip
|
||||
datacenter: fsn1-dc14
|
||||
type: ipv6
|
||||
state: present
|
||||
- name: Primary IP should be absent
|
||||
hetzner.hcloud.hcloud_primary_ip:
|
||||
hetzner.hcloud.primary_ip:
|
||||
name: my-primary-ip
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -38,21 +38,21 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Primary IP infos
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
hetzner.hcloud.primary_ip_info:
|
||||
register: output
|
||||
|
||||
- name: Gather hcloud Primary IP infos by id
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
hetzner.hcloud.primary_ip_info:
|
||||
id: 673954
|
||||
register: output
|
||||
|
||||
- name: Gather hcloud Primary IP infos by name
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
hetzner.hcloud.primary_ip_info:
|
||||
name: srv1-v4
|
||||
register: output
|
||||
|
||||
- name: Gather hcloud Primary IP infos by label
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
hetzner.hcloud.primary_ip_info:
|
||||
label_selector: srv03-ips
|
||||
register: output
|
||||
|
||||
|
|
|
|||
|
|
@ -57,35 +57,35 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a reverse DNS entry for a server
|
||||
hetzner.hcloud.hcloud_rdns:
|
||||
hetzner.hcloud.rdns:
|
||||
server: my-server
|
||||
ip_address: 123.123.123.123
|
||||
dns_ptr: example.com
|
||||
state: present
|
||||
|
||||
- name: Create a reverse DNS entry for a Floating IP
|
||||
hetzner.hcloud.hcloud_rdns:
|
||||
hetzner.hcloud.rdns:
|
||||
floating_ip: my-floating-ip
|
||||
ip_address: 123.123.123.123
|
||||
dns_ptr: example.com
|
||||
state: present
|
||||
|
||||
- name: Create a reverse DNS entry for a Primary IP
|
||||
hetzner.hcloud.hcloud_rdns:
|
||||
hetzner.hcloud.rdns:
|
||||
primary_ip: my-primary-ip
|
||||
ip_address: 123.123.123.123
|
||||
dns_ptr: example.com
|
||||
state: present
|
||||
|
||||
- name: Create a reverse DNS entry for a Load Balancer
|
||||
hetzner.hcloud.hcloud_rdns:
|
||||
hetzner.hcloud.rdns:
|
||||
load_balancer: my-load-balancer
|
||||
ip_address: 123.123.123.123
|
||||
dns_ptr: example.com
|
||||
state: present
|
||||
|
||||
- name: Ensure the reverse DNS entry is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_rdns:
|
||||
hetzner.hcloud.rdns:
|
||||
server: my-server
|
||||
ip_address: 123.123.123.123
|
||||
dns_ptr: example.com
|
||||
|
|
|
|||
|
|
@ -46,14 +46,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic route
|
||||
hetzner.hcloud.hcloud_route:
|
||||
hetzner.hcloud.route:
|
||||
network: my-network
|
||||
destination: 10.100.1.0/24
|
||||
gateway: 10.0.1.1
|
||||
state: present
|
||||
|
||||
- name: Ensure the route is absent
|
||||
hetzner.hcloud.hcloud_route:
|
||||
hetzner.hcloud.route:
|
||||
network: my-network
|
||||
destination: 10.100.1.0/24
|
||||
gateway: 10.0.1.1
|
||||
|
|
|
|||
|
|
@ -157,14 +157,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic server
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
server_type: cx11
|
||||
image: ubuntu-22.04
|
||||
state: present
|
||||
|
||||
- name: Create a basic server with ssh key
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
server_type: cx11
|
||||
image: ubuntu-22.04
|
||||
|
|
@ -174,59 +174,59 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Resize an existing server
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
server_type: cx21
|
||||
upgrade_disk: true
|
||||
state: present
|
||||
|
||||
- name: Ensure the server is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
state: absent
|
||||
|
||||
- name: Ensure the server is started
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
state: started
|
||||
|
||||
- name: Ensure the server is stopped
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
state: stopped
|
||||
|
||||
- name: Ensure the server is restarted
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
state: restarted
|
||||
|
||||
- name: Ensure the server is will be booted in rescue mode and therefore restarted
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
rescue_mode: linux64
|
||||
state: restarted
|
||||
|
||||
- name: Ensure the server is rebuild
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
image: ubuntu-22.04
|
||||
state: rebuild
|
||||
|
||||
- name: Add server to placement group
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
placement_group: my-placement-group
|
||||
force: true
|
||||
state: present
|
||||
|
||||
- name: Remove server from placement group
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
placement_group:
|
||||
state: present
|
||||
|
||||
- name: Add server with private network only
|
||||
hetzner.hcloud.hcloud_server:
|
||||
hetzner.hcloud.server:
|
||||
name: my-server
|
||||
enable_ipv4: false
|
||||
enable_ipv6: false
|
||||
|
|
@ -553,7 +553,7 @@ class AnsibleHCloudServer(AnsibleHCloud):
|
|||
"no longer be ordered. Existing servers of that plan will continue to "
|
||||
"work as before and no action is required on your part. "
|
||||
"It is possible to migrate this server to another server plan by setting "
|
||||
"the server_type parameter on the hetzner.hcloud.hcloud_server module."
|
||||
"the server_type parameter on the hetzner.hcloud.server module."
|
||||
)
|
||||
else:
|
||||
server_type_unavailable_date = server_type.deprecation.unavailable_after.strftime("%Y-%m-%d")
|
||||
|
|
@ -563,7 +563,7 @@ class AnsibleHCloudServer(AnsibleHCloud):
|
|||
"Existing servers of that plan will continue to work as before and no "
|
||||
"action is required on your part. "
|
||||
"It is possible to migrate this server to another server plan by setting "
|
||||
"the server_type parameter on the hetzner.hcloud.hcloud_server module."
|
||||
"the server_type parameter on the hetzner.hcloud.server module."
|
||||
)
|
||||
|
||||
def _get_placement_group(self):
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud server infos
|
||||
hetzner.hcloud.hcloud_server_info:
|
||||
hetzner.hcloud.server_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -50,20 +50,20 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic server network
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
hetzner.hcloud.server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
state: present
|
||||
|
||||
- name: Create a server network and specify the ip address
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
hetzner.hcloud.server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
ip: 10.0.0.1
|
||||
state: present
|
||||
|
||||
- name: Create a server network and add alias ips
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
hetzner.hcloud.server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
ip: 10.0.0.1
|
||||
|
|
@ -73,7 +73,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the server network is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
hetzner.hcloud.server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud server type infos
|
||||
hetzner.hcloud.hcloud_server_type_info:
|
||||
hetzner.hcloud.server_type_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -55,13 +55,13 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic ssh_key
|
||||
hetzner.hcloud.hcloud_ssh_key:
|
||||
hetzner.hcloud.ssh_key:
|
||||
name: my-ssh_key
|
||||
public_key: ssh-rsa AAAjjk76kgf...Xt
|
||||
state: present
|
||||
|
||||
- name: Create a ssh_key with labels
|
||||
hetzner.hcloud.hcloud_ssh_key:
|
||||
hetzner.hcloud.ssh_key:
|
||||
name: my-ssh_key
|
||||
public_key: ssh-rsa AAAjjk76kgf...Xt
|
||||
labels:
|
||||
|
|
@ -70,7 +70,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the ssh_key is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_ssh_key:
|
||||
hetzner.hcloud.ssh_key:
|
||||
name: my-ssh_key
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud sshkey infos
|
||||
hetzner.hcloud.hcloud_ssh_key_info:
|
||||
hetzner.hcloud.ssh_key_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic subnetwork
|
||||
hetzner.hcloud.hcloud_subnetwork:
|
||||
hetzner.hcloud.subnetwork:
|
||||
network: my-network
|
||||
ip_range: 10.0.0.0/16
|
||||
network_zone: eu-central
|
||||
|
|
@ -65,7 +65,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Create a basic subnetwork
|
||||
hetzner.hcloud.hcloud_subnetwork:
|
||||
hetzner.hcloud.subnetwork:
|
||||
network: my-vswitch-network
|
||||
ip_range: 10.0.0.0/24
|
||||
network_zone: eu-central
|
||||
|
|
@ -74,7 +74,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the subnetwork is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_subnetwork:
|
||||
hetzner.hcloud.subnetwork:
|
||||
network: my-network
|
||||
ip_range: 10.0.0.0/8
|
||||
network_zone: eu-central
|
||||
|
|
|
|||
|
|
@ -75,32 +75,32 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a Volume
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
hetzner.hcloud.volume:
|
||||
name: my-volume
|
||||
location: fsn1
|
||||
size: 100
|
||||
state: present
|
||||
- name: Create a Volume and format it with ext4
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
hetzner.hcloud.volume:
|
||||
name: my-volume
|
||||
location: fsn
|
||||
format: ext4
|
||||
size: 100
|
||||
state: present
|
||||
- name: Mount a existing Volume and automount
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
hetzner.hcloud.volume:
|
||||
name: my-volume
|
||||
server: my-server
|
||||
automount: true
|
||||
state: present
|
||||
- name: Mount a existing Volume and automount
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
hetzner.hcloud.volume:
|
||||
name: my-volume
|
||||
server: my-server
|
||||
automount: true
|
||||
state: present
|
||||
- name: Ensure the Volume is absent (remove if needed)
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
hetzner.hcloud.volume:
|
||||
name: my-volume
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Volume infos
|
||||
hetzner.hcloud.hcloud_volume_info:
|
||||
hetzner.hcloud.volume_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue