1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-06 20:17:15 +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

@ -226,12 +226,12 @@ extends_documentation_fragment:
EXAMPLES = '''
# create an ecs instance
- name: create a vpc
- name: Create a vpc
hwc_network_vpc:
cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test"
register: vpc
- name: create a subnet
- name: Create a subnet
hwc_vpc_subnet:
gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test"
@ -239,7 +239,7 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26"
register: subnet
- name: create a eip
- name: Create a eip
hwc_vpc_eip:
dedicated_bandwidth:
charge_mode: "traffic"
@ -247,14 +247,14 @@ EXAMPLES = '''
size: 1
type: "5_bgp"
register: eip
- name: create a disk
- name: Create a disk
hwc_evs_disk:
availability_zone: "cn-north-1a"
name: "ansible_evs_disk_test"
volume_type: "SATA"
size: 10
register: disk
- name: create an instance
- name: Create an instance
hwc_ecs_instance:
data_volumes:
- volume_id: "{{ disk.id }}"

View file

@ -154,7 +154,7 @@ extends_documentation_fragment:
EXAMPLES = '''
# test create disk
- name: create a disk
- name: Create a disk
hwc_evs_disk:
availability_zone: "cn-north-1a"
name: "ansible_evs_disk_test"

View file

@ -65,7 +65,7 @@ extends_documentation_fragment:
'''
EXAMPLES = '''
- name: create a vpc
- name: Create a vpc
hwc_network_vpc:
identity_endpoint: "{{ identity_endpoint }}"
user: "{{ user }}"

View file

@ -50,7 +50,7 @@ extends_documentation_fragment:
'''
EXAMPLES = '''
- name: create a smn topic
- name: Create a smn topic
hwc_smn_topic:
identity_endpoint: "{{ identity_endpoint }}"
user_name: "{{ user_name }}"

View file

@ -125,12 +125,12 @@ extends_documentation_fragment:
EXAMPLES = '''
# create an eip and bind it to a port
- name: create vpc
- name: Create vpc
hwc_network_vpc:
cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test"
register: vpc
- name: create subnet
- name: Create subnet
hwc_vpc_subnet:
gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test"
@ -138,12 +138,12 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26"
register: subnet
- name: create a port
- name: Create a port
hwc_vpc_port:
subnet_id: "{{ subnet.id }}"
ip_address: "192.168.100.33"
register: port
- name: create an eip and bind it to a port
- name: Create an eip and bind it to a port
hwc_vpc_eip:
type: "5_bgp"
dedicated_bandwidth:

View file

@ -79,17 +79,17 @@ extends_documentation_fragment:
EXAMPLES = '''
# create a peering connect
- name: create a local vpc
- name: Create a local vpc
hwc_network_vpc:
cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_local"
register: vpc1
- name: create a peering vpc
- name: Create a peering vpc
hwc_network_vpc:
cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_peering"
register: vpc2
- name: create a peering connect
- name: Create a peering connect
hwc_vpc_peering_connect:
local_vpc_id: "{{ vpc1.id }}"
name: "ansible_network_peering_test"

View file

@ -106,12 +106,12 @@ extends_documentation_fragment:
EXAMPLES = '''
# create a port
- name: create vpc
- name: Create vpc
hwc_network_vpc:
cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test"
register: vpc
- name: create subnet
- name: Create subnet
hwc_vpc_subnet:
gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test"
@ -119,7 +119,7 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26"
register: subnet
- name: create a port
- name: Create a port
hwc_vpc_port:
subnet_id: "{{ subnet.id }}"
ip_address: "192.168.100.33"

View file

@ -53,12 +53,12 @@ extends_documentation_fragment:
EXAMPLES = '''
# create a private ip
- name: create vpc
- name: Create vpc
hwc_network_vpc:
cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test"
register: vpc
- name: create subnet
- name: Create subnet
hwc_vpc_subnet:
gateway_ip: "192.168.100.32"
name: "ansible_network_subnet_test"
@ -66,7 +66,7 @@ EXAMPLES = '''
vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26"
register: subnet
- name: create a private ip
- name: Create a private ip
hwc_vpc_private_ip:
subnet_id: "{{ subnet.id }}"
ip_address: "192.168.100.33"

View file

@ -60,17 +60,17 @@ extends_documentation_fragment:
EXAMPLES = '''
# create a peering connect
- name: create a local vpc
- name: Create a local vpc
hwc_network_vpc:
cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_local"
register: vpc1
- name: create a peering vpc
- name: Create a peering vpc
hwc_network_vpc:
cidr: "192.168.0.0/16"
name: "ansible_network_vpc_test_peering"
register: vpc2
- name: create a peering connect
- name: Create a peering connect
hwc_vpc_peering_connect:
local_vpc_id: "{{ vpc1.id }}"
name: "ansible_network_peering_test"
@ -79,7 +79,7 @@ EXAMPLES = '''
peering_vpc:
vpc_id: "{{ vpc2.id }}"
register: connect
- name: create a route
- name: Create a route
hwc_vpc_route:
vpc_id: "{{ vpc1.id }}"
destination: "192.168.0.0/16"

View file

@ -64,7 +64,7 @@ extends_documentation_fragment:
EXAMPLES = '''
# create a security group
- name: create a security group
- name: Create a security group
hwc_vpc_security_group:
name: "ansible_network_security_group_test"
'''

View file

@ -105,11 +105,11 @@ extends_documentation_fragment:
EXAMPLES = '''
# create a security group rule
- name: create a security group
- name: Create a security group
hwc_vpc_security_group:
name: "ansible_network_security_group_test"
register: sg
- name: create a security group rule
- name: Create a security group rule
hwc_vpc_security_group_rule:
direction: "ingress"
protocol: "tcp"

View file

@ -97,12 +97,12 @@ extends_documentation_fragment:
EXAMPLES = '''
# create subnet
- name: create vpc
- name: Create vpc
hwc_network_vpc:
cidr: "192.168.100.0/24"
name: "ansible_network_vpc_test"
register: vpc
- name: create subnet
- name: Create subnet
hwc_vpc_subnet:
vpc_id: "{{ vpc.id }}"
cidr: "192.168.100.0/26"