mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
@@ -117,7 +117,7 @@ EXAMPLES = '''
|
||||
|
||||
# Provisioning example
|
||||
- name: Create three servers and enumerate their names
|
||||
profitbricks:
|
||||
community.general.profitbricks:
|
||||
datacenter: Tardis One
|
||||
name: web%02d.stackpointcloud.com
|
||||
cores: 4
|
||||
@@ -130,7 +130,7 @@ EXAMPLES = '''
|
||||
assign_public_ip: true
|
||||
|
||||
- name: Remove virtual machines
|
||||
profitbricks:
|
||||
community.general.profitbricks:
|
||||
datacenter: Tardis One
|
||||
instance_ids:
|
||||
- 'web001.stackpointcloud.com'
|
||||
@@ -140,7 +140,7 @@ EXAMPLES = '''
|
||||
state: absent
|
||||
|
||||
- name: Start virtual machines
|
||||
profitbricks:
|
||||
community.general.profitbricks:
|
||||
datacenter: Tardis One
|
||||
instance_ids:
|
||||
- 'web001.stackpointcloud.com'
|
||||
@@ -150,7 +150,7 @@ EXAMPLES = '''
|
||||
state: running
|
||||
|
||||
- name: Stop virtual machines
|
||||
profitbricks:
|
||||
community.general.profitbricks:
|
||||
datacenter: Tardis One
|
||||
instance_ids:
|
||||
- 'web001.stackpointcloud.com'
|
||||
@@ -326,7 +326,7 @@ def create_virtual_machine(module, profitbricks):
|
||||
Create new virtual machine
|
||||
|
||||
module : AnsibleModule object
|
||||
profitbricks: authenticated profitbricks object
|
||||
community.general.profitbricks: authenticated profitbricks object
|
||||
|
||||
Returns:
|
||||
True if a new virtual machine was created, false otherwise
|
||||
@@ -413,7 +413,7 @@ def remove_virtual_machine(module, profitbricks):
|
||||
This will remove the virtual machine along with the bootVolume.
|
||||
|
||||
module : AnsibleModule object
|
||||
profitbricks: authenticated profitbricks object.
|
||||
community.general.profitbricks: authenticated profitbricks object.
|
||||
|
||||
Not yet supported: handle deletion of attached data disks.
|
||||
|
||||
@@ -472,7 +472,7 @@ def startstop_machine(module, profitbricks, state):
|
||||
Starts or Stops a virtual machine.
|
||||
|
||||
module : AnsibleModule object
|
||||
profitbricks: authenticated profitbricks object.
|
||||
community.general.profitbricks: authenticated profitbricks object.
|
||||
|
||||
Returns:
|
||||
True when the servers process the action successfully, false otherwise.
|
||||
|
||||
@@ -59,12 +59,12 @@ author: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com>
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: Create a datacenter
|
||||
profitbricks_datacenter:
|
||||
community.general.profitbricks_datacenter:
|
||||
datacenter: Tardis One
|
||||
wait_timeout: 500
|
||||
|
||||
- name: Destroy a datacenter (remove all servers, volumes, and other objects in the datacenter)
|
||||
profitbricks_datacenter:
|
||||
community.general.profitbricks_datacenter:
|
||||
datacenter: Tardis One
|
||||
wait_timeout: 500
|
||||
state: absent
|
||||
|
||||
@@ -60,7 +60,7 @@ author: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com>
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: Create a NIC
|
||||
profitbricks_nic:
|
||||
community.general.profitbricks_nic:
|
||||
datacenter: Tardis One
|
||||
server: node002
|
||||
lan: 2
|
||||
@@ -68,7 +68,7 @@ EXAMPLES = '''
|
||||
state: present
|
||||
|
||||
- name: Remove a NIC
|
||||
profitbricks_nic:
|
||||
community.general.profitbricks_nic:
|
||||
datacenter: Tardis One
|
||||
server: node002
|
||||
name: 7341c2454f
|
||||
|
||||
@@ -101,7 +101,7 @@ author: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com>
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: Create multiple volumes
|
||||
profitbricks_volume:
|
||||
community.general.profitbricks_volume:
|
||||
datacenter: Tardis One
|
||||
name: vol%02d
|
||||
count: 5
|
||||
@@ -110,7 +110,7 @@ EXAMPLES = '''
|
||||
state: present
|
||||
|
||||
- name: Remove Volumes
|
||||
profitbricks_volume:
|
||||
community.general.profitbricks_volume:
|
||||
datacenter: Tardis One
|
||||
instance_ids:
|
||||
- 'vol01'
|
||||
|
||||
@@ -56,7 +56,7 @@ author: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com>
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: Attach a volume
|
||||
profitbricks_volume_attachments:
|
||||
community.general.profitbricks_volume_attachments:
|
||||
datacenter: Tardis One
|
||||
server: node002
|
||||
volume: vol01
|
||||
@@ -64,7 +64,7 @@ EXAMPLES = '''
|
||||
state: present
|
||||
|
||||
- name: Detach a volume
|
||||
profitbricks_volume_attachments:
|
||||
community.general.profitbricks_volume_attachments:
|
||||
datacenter: Tardis One
|
||||
server: node002
|
||||
volume: vol01
|
||||
|
||||
Reference in New Issue
Block a user