1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-02 10:26:22 +00:00

Fix examples formatting (#345)

This commit is contained in:
Andrew Klychkov 2020-05-16 16:07:51 +03:00 committed by GitHub
parent 31ba39cac4
commit a7c830f49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 330 additions and 334 deletions

View file

@ -131,7 +131,7 @@ EXAMPLES = '''
# Creating devices
- name: create 1 device
- name: Create 1 device
hosts: localhost
tasks:
- packet_device:
@ -145,7 +145,7 @@ EXAMPLES = '''
# ready for other API operations). Fail if the devices in not "active" in
# 10 minutes.
- name: create device and wait up to 10 minutes for active state
- name: Create device and wait up to 10 minutes for active state
hosts: localhost
tasks:
- packet_device:
@ -157,7 +157,7 @@ EXAMPLES = '''
state: active
wait_timeout: 600
- name: create 3 ubuntu devices called server-01, server-02 and server-03
- name: Create 3 ubuntu devices called server-01, server-02 and server-03
hosts: localhost
tasks:
- packet_device:
@ -171,7 +171,7 @@ EXAMPLES = '''
- name: Create 3 coreos devices with userdata, wait until they get IPs and then wait for SSH
hosts: localhost
tasks:
- name: create 3 devices and register their facts
- name: Create 3 devices and register their facts
packet_device:
hostnames: [coreos-one, coreos-two, coreos-three]
operating_system: coreos_stable
@ -198,7 +198,7 @@ EXAMPLES = '''
command: start
register: newhosts
- name: wait for ssh
- name: Wait for ssh
wait_for:
delay: 1
host: "{{ item.public_ipv4 }}"
@ -210,7 +210,7 @@ EXAMPLES = '''
# Other states of devices
- name: remove 3 devices by uuid
- name: Remove 3 devices by uuid
hosts: localhost
tasks:
- packet_device:

View file

@ -82,7 +82,7 @@ EXAMPLES = '''
# All the examples assume that you have your Packet api token in env var PACKET_API_TOKEN.
# You can also pass it to the auth_token parameter of the module instead.
- name: create 1 device and assign an arbitrary public IPv4 subnet to it
- name: Create 1 device and assign an arbitrary public IPv4 subnet to it
hosts: localhost
tasks:
@ -103,7 +103,7 @@ EXAMPLES = '''
# Release IP address 147.75.201.78
- name: unassign IP address from any device in your project
- name: Unassign IP address from any device in your project
hosts: localhost
tasks:
- packet_ip_subnet:

View file

@ -74,27 +74,27 @@ EXAMPLES = '''
# All the examples assume that you have your Packet API token in env var PACKET_API_TOKEN.
# You can also pass the api token in module param auth_token.
- name: create new project
- name: Create new project
hosts: localhost
tasks:
packet_project:
name: "new project"
- name: create new project within non-default organization
- name: Create new project within non-default organization
hosts: localhost
tasks:
packet_project:
name: "my org project"
org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0
- name: remove project by id
- name: Remove project by id
hosts: localhost
tasks:
packet_project:
state: absent
id: eef49903-7a09-4ca1-af67-4087c29ab5b6
- name: create new project with non-default billing method
- name: Create new project with non-default billing method
hosts: localhost
tasks:
packet_project:

View file

@ -49,20 +49,20 @@ EXAMPLES = '''
# All the examples assume that you have your Packet API token in env var PACKET_API_TOKEN.
# You can also pass the api token in module param auth_token.
- name: create sshkey from string
- name: Create sshkey from string
hosts: localhost
tasks:
packet_sshkey:
key: "{{ lookup('file', 'my_packet_sshkey.pub') }}"
- name: create sshkey from file
- name: Create sshkey from file
hosts: localhost
tasks:
packet_sshkey:
label: key from file
key_file: ~/ff.pub
- name: remove sshkey by id
- name: Remove sshkey by id
hosts: localhost
tasks:
packet_sshkey: