mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
chore: use fqcn module names (#273)
This commit is contained in:
parent
f197607dad
commit
51f705c343
64 changed files with 539 additions and 539 deletions
|
|
@ -68,14 +68,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic certificate
|
||||
hcloud_certificate:
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
name: my-certificate
|
||||
certificate: "ssh-rsa AAAjjk76kgf...Xt"
|
||||
private_key: "ssh-rsa AAAjjk76kgf...Xt"
|
||||
state: present
|
||||
|
||||
- name: Create a certificate with labels
|
||||
hcloud_certificate:
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
name: my-certificate
|
||||
certificate: "ssh-rsa AAAjjk76kgf...Xt"
|
||||
private_key: "ssh-rsa AAAjjk76kgf...Xt"
|
||||
|
|
@ -85,7 +85,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the certificate is absent (remove if needed)
|
||||
hcloud_certificate:
|
||||
hetzner.hcloud.hcloud_certificate:
|
||||
name: my-certificate
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud certificate infos
|
||||
hcloud_certificate_info:
|
||||
hetzner.hcloud.hcloud_certificate_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud datacenter info
|
||||
hcloud_datacenter_info:
|
||||
hetzner.hcloud.hcloud_datacenter_info:
|
||||
register: output
|
||||
- name: Print the gathered info
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -80,12 +80,12 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic firewall
|
||||
hcloud_firewall:
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
name: my-firewall
|
||||
state: present
|
||||
|
||||
- name: Create a firewall with rules
|
||||
hcloud_firewall:
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
name: my-firewall
|
||||
rules:
|
||||
- direction: in
|
||||
|
|
@ -97,7 +97,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Create a firewall with labels
|
||||
hcloud_firewall:
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
name: my-firewall
|
||||
labels:
|
||||
key: value
|
||||
|
|
@ -105,7 +105,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the firewall is absent (remove if needed)
|
||||
hcloud_firewall:
|
||||
hetzner.hcloud.hcloud_firewall:
|
||||
name: my-firewall
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -77,30 +77,30 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic IPv4 Floating IP
|
||||
hcloud_floating_ip:
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
name: my-floating-ip
|
||||
home_location: fsn1
|
||||
type: ipv4
|
||||
state: present
|
||||
- name: Create a basic IPv6 Floating IP
|
||||
hcloud_floating_ip:
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
name: my-floating-ip
|
||||
home_location: fsn1
|
||||
type: ipv6
|
||||
state: present
|
||||
- name: Assign a Floating IP to a server
|
||||
hcloud_floating_ip:
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
name: my-floating-ip
|
||||
server: 1234
|
||||
state: present
|
||||
- name: Assign a Floating IP to another server
|
||||
hcloud_floating_ip:
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
name: my-floating-ip
|
||||
server: 1234
|
||||
force: true
|
||||
state: present
|
||||
- name: Floating IP should be absent
|
||||
hcloud_floating_ip:
|
||||
hetzner.hcloud.hcloud_floating_ip:
|
||||
name: my-floating-ip
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Floating ip infos
|
||||
hcloud_floating_ip_info:
|
||||
hetzner.hcloud.hcloud_floating_ip_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud image infos
|
||||
hcloud_image_info:
|
||||
hetzner.hcloud.hcloud_image_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud ISO type infos
|
||||
hcloud_iso_info:
|
||||
hetzner.hcloud.hcloud_iso_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -71,14 +71,14 @@ requirements:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic Load Balancer
|
||||
hcloud_load_balancer:
|
||||
hetzner.hcloud.hcloud_load_balancer:
|
||||
name: my-Load Balancer
|
||||
load_balancer_type: lb11
|
||||
location: fsn1
|
||||
state: present
|
||||
|
||||
- name: Ensure the Load Balancer is absent (remove if needed)
|
||||
hcloud_load_balancer:
|
||||
hetzner.hcloud.hcloud_load_balancer:
|
||||
name: my-Load Balancer
|
||||
state: absent
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud load_balancer infos
|
||||
hcloud_load_balancer_info:
|
||||
hetzner.hcloud.hcloud_load_balancer_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -49,20 +49,20 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic Load Balancer network
|
||||
hcloud_load_balancer_network:
|
||||
hetzner.hcloud.hcloud_load_balancer_network:
|
||||
network: my-network
|
||||
load_balancer: my-LoadBalancer
|
||||
state: present
|
||||
|
||||
- name: Create a Load Balancer network and specify the ip address
|
||||
hcloud_load_balancer_network:
|
||||
hetzner.hcloud.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)
|
||||
hcloud_load_balancer_network:
|
||||
hetzner.hcloud.hcloud_load_balancer_network:
|
||||
network: my-network
|
||||
load_balancer: my-LoadBalancer
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -140,14 +140,14 @@ requirements:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic Load Balancer service with Port 80
|
||||
hcloud_load_balancer_service:
|
||||
hetzner.hcloud.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)
|
||||
hcloud_load_balancer_service:
|
||||
hetzner.hcloud.hcloud_load_balancer_service:
|
||||
load_balancer: my-Load Balancer
|
||||
protocol: http
|
||||
listen_port: 80
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Load Balancer type infos
|
||||
hcloud_load_balancer_type_info:
|
||||
hetzner.hcloud.hcloud_load_balancer_type_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud location infos
|
||||
hcloud_location_info:
|
||||
hetzner.hcloud.hcloud_location_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -64,13 +64,13 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic network
|
||||
hcloud_network:
|
||||
hetzner.hcloud.hcloud_network:
|
||||
name: my-network
|
||||
ip_range: 10.0.0.0/8
|
||||
state: present
|
||||
|
||||
- name: Ensure the Network is absent (remove if needed)
|
||||
hcloud_network:
|
||||
hetzner.hcloud.hcloud_network:
|
||||
name: my-network
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic placement group
|
||||
hcloud_placement_group:
|
||||
hetzner.hcloud.hcloud_placement_group:
|
||||
name: my-placement-group
|
||||
state: present
|
||||
type: spread
|
||||
|
||||
- name: Create a placement group with labels
|
||||
hcloud_placement_group:
|
||||
hetzner.hcloud.hcloud_placement_group:
|
||||
name: my-placement-group
|
||||
type: spread
|
||||
labels:
|
||||
|
|
@ -67,7 +67,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the placement group is absent (remove if needed)
|
||||
hcloud_placement_group:
|
||||
hetzner.hcloud.hcloud_placement_group:
|
||||
name: my-placement-group
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -69,19 +69,19 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic IPv4 Primary IP
|
||||
hcloud_primary_ip:
|
||||
hetzner.hcloud.hcloud_primary_ip:
|
||||
name: my-primary-ip
|
||||
datacenter: fsn1-dc14
|
||||
type: ipv4
|
||||
state: present
|
||||
- name: Create a basic IPv6 Primary IP
|
||||
hcloud_primary_ip:
|
||||
hetzner.hcloud.hcloud_primary_ip:
|
||||
name: my-primary-ip
|
||||
datacenter: fsn1-dc14
|
||||
type: ipv6
|
||||
state: present
|
||||
- name: Primary IP should be absent
|
||||
hcloud_primary_ip:
|
||||
hetzner.hcloud.hcloud_primary_ip:
|
||||
name: my-primary-ip
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -37,21 +37,21 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Primary IP infos
|
||||
hcloud_primary_ip_info:
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
register: output
|
||||
|
||||
- name: Gather hcloud Primary IP infos by id
|
||||
hcloud_primary_ip_info:
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
id: 673954
|
||||
register: output
|
||||
|
||||
- name: Gather hcloud Primary IP infos by name
|
||||
hcloud_primary_ip_info:
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
name: srv1-v4
|
||||
register: output
|
||||
|
||||
- name: Gather hcloud Primary IP infos by label
|
||||
hcloud_primary_ip_info:
|
||||
hetzner.hcloud.hcloud_primary_ip_info:
|
||||
label_selector: srv03-ips
|
||||
register: output
|
||||
|
||||
|
|
|
|||
|
|
@ -61,35 +61,35 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a reverse DNS entry for a server
|
||||
hcloud_rdns:
|
||||
hetzner.hcloud.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
|
||||
hcloud_rdns:
|
||||
hetzner.hcloud.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
|
||||
hcloud_rdns:
|
||||
hetzner.hcloud.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
|
||||
hcloud_rdns:
|
||||
hetzner.hcloud.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)
|
||||
hcloud_rdns:
|
||||
hetzner.hcloud.hcloud_rdns:
|
||||
server: my-server
|
||||
ip_address: 123.123.123.123
|
||||
dns_ptr: example.com
|
||||
|
|
|
|||
|
|
@ -50,14 +50,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic route
|
||||
hcloud_route:
|
||||
hetzner.hcloud.hcloud_route:
|
||||
network: my-network
|
||||
destination: 10.100.1.0/24
|
||||
gateway: 10.0.1.1
|
||||
state: present
|
||||
|
||||
- name: Ensure the route is absent
|
||||
hcloud_route:
|
||||
hetzner.hcloud.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
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
server_type: cx11
|
||||
image: ubuntu-22.04
|
||||
state: present
|
||||
|
||||
- name: Create a basic server with ssh key
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
server_type: cx11
|
||||
image: ubuntu-22.04
|
||||
|
|
@ -174,59 +174,59 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Resize an existing server
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
server_type: cx21
|
||||
upgrade_disk: true
|
||||
state: present
|
||||
|
||||
- name: Ensure the server is absent (remove if needed)
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
state: absent
|
||||
|
||||
- name: Ensure the server is started
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
state: started
|
||||
|
||||
- name: Ensure the server is stopped
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
state: stopped
|
||||
|
||||
- name: Ensure the server is restarted
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
state: restarted
|
||||
|
||||
- name: Ensure the server is will be booted in rescue mode and therefore restarted
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
rescue_mode: linux64
|
||||
state: restarted
|
||||
|
||||
- name: Ensure the server is rebuild
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
image: ubuntu-22.04
|
||||
state: rebuild
|
||||
|
||||
- name: Add server to placement group
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
placement_group: my-placement-group
|
||||
force: True
|
||||
state: present
|
||||
|
||||
- name: Remove server from placement group
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
placement_group: null
|
||||
state: present
|
||||
|
||||
- name: Add server with private network only
|
||||
hcloud_server:
|
||||
hetzner.hcloud.hcloud_server:
|
||||
name: my-server
|
||||
enable_ipv4: false
|
||||
enable_ipv6: false
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud server infos
|
||||
hcloud_server_info:
|
||||
hetzner.hcloud.hcloud_server_info:
|
||||
register: output
|
||||
|
||||
- name: Print the gathered infos
|
||||
|
|
|
|||
|
|
@ -54,20 +54,20 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic server network
|
||||
hcloud_server_network:
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
state: present
|
||||
|
||||
- name: Create a server network and specify the ip address
|
||||
hcloud_server_network:
|
||||
hetzner.hcloud.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
|
||||
hcloud_server_network:
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
ip: 10.0.0.1
|
||||
|
|
@ -77,7 +77,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the server network is absent (remove if needed)
|
||||
hcloud_server_network:
|
||||
hetzner.hcloud.hcloud_server_network:
|
||||
network: my-network
|
||||
server: my-server
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud server type infos
|
||||
hcloud_server_type_info:
|
||||
hetzner.hcloud.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
|
||||
hcloud_ssh_key:
|
||||
hetzner.hcloud.hcloud_ssh_key:
|
||||
name: my-ssh_key
|
||||
public_key: "ssh-rsa AAAjjk76kgf...Xt"
|
||||
state: present
|
||||
|
||||
- name: Create a ssh_key with labels
|
||||
hcloud_ssh_key:
|
||||
hetzner.hcloud.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)
|
||||
hcloud_ssh_key:
|
||||
hetzner.hcloud.hcloud_ssh_key:
|
||||
name: my-ssh_key
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud sshkey infos
|
||||
hcloud_ssh_key_info:
|
||||
hetzner.hcloud.hcloud_ssh_key_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Create a basic subnetwork
|
||||
hcloud_subnetwork:
|
||||
hetzner.hcloud.hcloud_subnetwork:
|
||||
network: my-network
|
||||
ip_range: 10.0.0.0/16
|
||||
network_zone: eu-central
|
||||
|
|
@ -69,7 +69,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Create a basic subnetwork
|
||||
hcloud_subnetwork:
|
||||
hetzner.hcloud.hcloud_subnetwork:
|
||||
network: my-vswitch-network
|
||||
ip_range: 10.0.0.0/24
|
||||
network_zone: eu-central
|
||||
|
|
@ -78,7 +78,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
|
||||
- name: Ensure the subnetwork is absent (remove if needed)
|
||||
hcloud_subnetwork:
|
||||
hetzner.hcloud.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
|
||||
hcloud_volume:
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
name: my-volume
|
||||
location: fsn1
|
||||
size: 100
|
||||
state: present
|
||||
- name: Create a Volume and format it with ext4
|
||||
hcloud_volume:
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
name: my-volume
|
||||
location: fsn
|
||||
format: ext4
|
||||
size: 100
|
||||
state: present
|
||||
- name: Mount a existing Volume and automount
|
||||
hcloud_volume:
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
name: my-volume
|
||||
server: my-server
|
||||
automount: true
|
||||
state: present
|
||||
- name: Mount a existing Volume and automount
|
||||
hcloud_volume:
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
name: my-volume
|
||||
server: my-server
|
||||
automount: true
|
||||
state: present
|
||||
- name: Ensure the Volume is absent (remove if needed)
|
||||
hcloud_volume:
|
||||
hetzner.hcloud.hcloud_volume:
|
||||
name: my-volume
|
||||
state: absent
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = """
|
||||
- name: Gather hcloud Volume infos
|
||||
hcloud_volume_info:
|
||||
hetzner.hcloud.hcloud_volume_info:
|
||||
register: output
|
||||
- name: Print the gathered infos
|
||||
debug:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue