modules: fix examples to use FQCN (#644)

* modules: fix examples to use FQCN

* fix

* fix

* fix
This commit is contained in:
Andrew Klychkov 2020-07-13 22:50:31 +03:00 committed by GitHub
commit 41cfdda6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
533 changed files with 2130 additions and 2130 deletions

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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'

View file

@ -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