mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-11 14:35:06 +00:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
parent
8b92e0454d
commit
41cfdda6a3
533 changed files with 2130 additions and 2130 deletions
|
|
@ -142,7 +142,7 @@ EXAMPLES = '''
|
|||
- name: Create 1 device
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
- community.general.packet_device:
|
||||
project_id: 89b497ee-5afc-420a-8fb5-56984898f4df
|
||||
hostnames: myserver
|
||||
tags: ci-xyz
|
||||
|
|
@ -157,7 +157,7 @@ EXAMPLES = '''
|
|||
- name: Create device and wait up to 10 minutes for active state
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
- community.general.packet_device:
|
||||
project_id: 89b497ee-5afc-420a-8fb5-56984898f4df
|
||||
hostnames: myserver
|
||||
operating_system: ubuntu_16_04
|
||||
|
|
@ -169,7 +169,7 @@ EXAMPLES = '''
|
|||
- name: Create 3 ubuntu devices called server-01, server-02 and server-03
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
- community.general.packet_device:
|
||||
project_id: 89b497ee-5afc-420a-8fb5-56984898f4df
|
||||
hostnames: server-%02d
|
||||
count: 3
|
||||
|
|
@ -181,7 +181,7 @@ EXAMPLES = '''
|
|||
hosts: localhost
|
||||
tasks:
|
||||
- name: Create 3 devices and register their facts
|
||||
packet_device:
|
||||
community.general.packet_device:
|
||||
hostnames: [coreos-one, coreos-two, coreos-three]
|
||||
operating_system: coreos_stable
|
||||
plan: baremetal_0
|
||||
|
|
@ -222,7 +222,7 @@ EXAMPLES = '''
|
|||
- name: Remove 3 devices by uuid
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_device:
|
||||
- community.general.packet_device:
|
||||
project_id: 89b497ee-5afc-420a-8fb5-56984898f4df
|
||||
state: absent
|
||||
device_ids:
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ EXAMPLES = '''
|
|||
|
||||
# Pick an IPv4 address from a block allocated to your project.
|
||||
|
||||
- packet_ip_subnet:
|
||||
- community.general.packet_ip_subnet:
|
||||
project_id: 89b497ee-5afc-420a-8fb5-56984898f4df
|
||||
hostname: myserver
|
||||
cidr: "147.75.201.78/32"
|
||||
|
|
@ -107,7 +107,7 @@ EXAMPLES = '''
|
|||
- name: Unassign IP address from any device in your project
|
||||
hosts: localhost
|
||||
tasks:
|
||||
- packet_ip_subnet:
|
||||
- community.general.packet_ip_subnet:
|
||||
project_id: 89b497ee-5afc-420a-8fb5-56984898f4df
|
||||
cidr: "147.75.201.78/32"
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -78,27 +78,27 @@ EXAMPLES = '''
|
|||
- name: Create new project
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
community.general.packet_project:
|
||||
name: "new project"
|
||||
|
||||
- name: Create new project within non-default organization
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
community.general.packet_project:
|
||||
name: "my org project"
|
||||
org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0
|
||||
|
||||
- name: Remove project by id
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
community.general.packet_project:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
|
||||
- name: Create new project with non-default billing method
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_project:
|
||||
community.general.packet_project:
|
||||
name: "newer project"
|
||||
payment_method: "the other visa"
|
||||
'''
|
||||
|
|
|
|||
|
|
@ -52,20 +52,20 @@ EXAMPLES = '''
|
|||
- name: Create sshkey from string
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_sshkey:
|
||||
community.general.packet_sshkey:
|
||||
key: "{{ lookup('file', 'my_packet_sshkey.pub') }}"
|
||||
|
||||
- name: Create sshkey from file
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_sshkey:
|
||||
community.general.packet_sshkey:
|
||||
label: key from file
|
||||
key_file: ~/ff.pub
|
||||
|
||||
- name: Remove sshkey by id
|
||||
hosts: localhost
|
||||
tasks:
|
||||
packet_sshkey:
|
||||
community.general.packet_sshkey:
|
||||
state: absent
|
||||
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
|
||||
'''
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ EXAMPLES = '''
|
|||
|
||||
tasks:
|
||||
- name: Create volume
|
||||
packet_volume:
|
||||
community.general.packet_volume:
|
||||
description: "{{ volname }}"
|
||||
project_id: "{{ project_id }}"
|
||||
facility: 'ewr1'
|
||||
|
|
@ -141,7 +141,7 @@ EXAMPLES = '''
|
|||
register: result_create
|
||||
|
||||
- name: Delete volume
|
||||
packet_volume:
|
||||
community.general.packet_volume:
|
||||
id: "{{ result_create.id }}"
|
||||
project_id: "{{ project_id }}"
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -100,13 +100,13 @@ EXAMPLES = '''
|
|||
state: present
|
||||
|
||||
- name: Attach testvol to testdev
|
||||
packet_volume_attachment:
|
||||
community.general.packet_volume_attachment:
|
||||
project_id: "{{ project_id }}"
|
||||
volume: "{{ volname }}"
|
||||
device: "{{ devname }}"
|
||||
|
||||
- name: Detach testvol from testdev
|
||||
packet_volume_attachment:
|
||||
community.general.packet_volume_attachment:
|
||||
project_id: "{{ project_id }}"
|
||||
volume: "{{ volname }}"
|
||||
device: "{{ devname }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue