Native YAML, improve quotation (#3643)
This commit is contained in:
parent
8b31d48410
commit
7d1a006629
11 changed files with 69 additions and 60 deletions
|
@ -134,7 +134,7 @@ EXAMPLES = '''
|
||||||
route53_facts:
|
route53_facts:
|
||||||
profile: account_name
|
profile: account_name
|
||||||
query: record_sets
|
query: record_sets
|
||||||
hosted_zone_id: 'ZZZ1111112222'
|
hosted_zone_id: ZZZ1111112222
|
||||||
max_items: 20
|
max_items: 20
|
||||||
register: record_sets
|
register: record_sets
|
||||||
|
|
||||||
|
@ -149,13 +149,13 @@ EXAMPLES = '''
|
||||||
route53_facts:
|
route53_facts:
|
||||||
query: health_check
|
query: health_check
|
||||||
health_check_method: failure_reason
|
health_check_method: failure_reason
|
||||||
health_check_id: '00000000-1111-2222-3333-12345678abcd'
|
health_check_id: 00000000-1111-2222-3333-12345678abcd
|
||||||
register: health_check_failure_reason
|
register: health_check_failure_reason
|
||||||
|
|
||||||
- name: Retrieve reusable delegation set details
|
- name: Retrieve reusable delegation set details
|
||||||
route53_facts:
|
route53_facts:
|
||||||
query: reusable_delegation_set
|
query: reusable_delegation_set
|
||||||
delegation_set_id: 'delegation id'
|
delegation_set_id: delegation id
|
||||||
register: delegation_sets
|
register: delegation_sets
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -74,13 +74,14 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create an Anti Affinity Policy
|
- name: Create an Anti Affinity Policy
|
||||||
clc_aa_policy:
|
clc_aa_policy:
|
||||||
name: 'Hammer Time'
|
name: Hammer Time
|
||||||
location: 'UK3'
|
location: UK3
|
||||||
state: present
|
state: present
|
||||||
register: policy
|
register: policy
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug: var=policy
|
debug:
|
||||||
|
var: policy
|
||||||
|
|
||||||
---
|
---
|
||||||
- name: Delete AA Policy
|
- name: Delete AA Policy
|
||||||
|
@ -90,13 +91,14 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Delete an Anti Affinity Policy
|
- name: Delete an Anti Affinity Policy
|
||||||
clc_aa_policy:
|
clc_aa_policy:
|
||||||
name: 'Hammer Time'
|
name: Hammer Time
|
||||||
location: 'UK3'
|
location: UK3
|
||||||
state: absent
|
state: absent
|
||||||
register: policy
|
register: policy
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug: var=policy
|
debug:
|
||||||
|
var: policy
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -126,7 +126,7 @@ EXAMPLES = '''
|
||||||
source_account_alias: WFAD
|
source_account_alias: WFAD
|
||||||
location: VA1
|
location: VA1
|
||||||
state: absent
|
state: absent
|
||||||
firewall_policy_id: 'c62105233d7a4231bd2e91b9c791e43e1'
|
firewall_policy_id: c62105233d7a4231bd2e91b9c791e43e1
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -83,13 +83,14 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create / Verify a Server Group at CenturyLink Cloud
|
- name: Create / Verify a Server Group at CenturyLink Cloud
|
||||||
clc_group:
|
clc_group:
|
||||||
name: 'My Cool Server Group'
|
name: My Cool Server Group
|
||||||
parent: 'Default Group'
|
parent: Default Group
|
||||||
state: present
|
state: present
|
||||||
register: clc
|
register: clc
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug: var=clc
|
debug:
|
||||||
|
var: clc
|
||||||
|
|
||||||
# Delete a Server Group
|
# Delete a Server Group
|
||||||
|
|
||||||
|
@ -101,14 +102,14 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud
|
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud
|
||||||
clc_group:
|
clc_group:
|
||||||
name: 'My Cool Server Group'
|
name: My Cool Server Group
|
||||||
parent: 'Default Group'
|
parent: Default Group
|
||||||
state: absent
|
state: absent
|
||||||
register: clc
|
register: clc
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug: var=clc
|
debug:
|
||||||
|
var: clc
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -81,17 +81,18 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create Public IP For Servers
|
- name: Create Public IP For Servers
|
||||||
clc_publicip:
|
clc_publicip:
|
||||||
protocol: 'TCP'
|
protocol: TCP
|
||||||
ports:
|
ports:
|
||||||
- 80
|
- 80
|
||||||
server_ids:
|
server_ids:
|
||||||
- UC1TEST-SVR01
|
- UC1TEST-SVR01
|
||||||
- UC1TEST-SVR02
|
- UC1TEST-SVR02
|
||||||
state: present
|
state: present
|
||||||
register: clc
|
register: clc
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug: var=clc
|
debug:
|
||||||
|
var: clc
|
||||||
|
|
||||||
- name: Delete Public IP from Server
|
- name: Delete Public IP from Server
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
@ -101,13 +102,14 @@ EXAMPLES = '''
|
||||||
- name: Create Public IP For Servers
|
- name: Create Public IP For Servers
|
||||||
clc_publicip:
|
clc_publicip:
|
||||||
server_ids:
|
server_ids:
|
||||||
- UC1TEST-SVR01
|
- UC1TEST-SVR01
|
||||||
- UC1TEST-SVR02
|
- UC1TEST-SVR02
|
||||||
state: absent
|
state: absent
|
||||||
register: clc
|
register: clc
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug: var=clc
|
debug:
|
||||||
|
var: clc
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -249,7 +249,7 @@ EXAMPLES = '''
|
||||||
name: test
|
name: test
|
||||||
template: ubuntu-14-64
|
template: ubuntu-14-64
|
||||||
count: 1
|
count: 1
|
||||||
group: 'Default Group'
|
group: Default Group
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure 'Default Group' has exactly 5 servers
|
- name: Ensure 'Default Group' has exactly 5 servers
|
||||||
|
@ -257,22 +257,25 @@ EXAMPLES = '''
|
||||||
name: test
|
name: test
|
||||||
template: ubuntu-14-64
|
template: ubuntu-14-64
|
||||||
exact_count: 5
|
exact_count: 5
|
||||||
count_group: 'Default Group'
|
count_group: Default Group
|
||||||
group: 'Default Group'
|
group: Default Group
|
||||||
|
|
||||||
- name: Stop a Server
|
- name: Stop a Server
|
||||||
clc_server:
|
clc_server:
|
||||||
server_ids: ['UC1ACCT-TEST01']
|
server_ids:
|
||||||
|
- UC1ACCT-TEST01
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
- name: Start a Server
|
- name: Start a Server
|
||||||
clc_server:
|
clc_server:
|
||||||
server_ids: ['UC1ACCT-TEST01']
|
server_ids:
|
||||||
|
- UC1ACCT-TEST01
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Delete a Server
|
- name: Delete a Server
|
||||||
clc_server:
|
clc_server:
|
||||||
server_ids: ['UC1ACCT-TEST01']
|
server_ids:
|
||||||
|
- UC1ACCT-TEST01
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ EXAMPLES = '''
|
||||||
name: macvlan
|
name: macvlan
|
||||||
state: present
|
state: present
|
||||||
config: {}
|
config: {}
|
||||||
description: 'my macvlan profile'
|
description: my macvlan profile
|
||||||
devices:
|
devices:
|
||||||
eth0:
|
eth0:
|
||||||
nictype: macvlan
|
nictype: macvlan
|
||||||
|
@ -126,7 +126,7 @@ EXAMPLES = '''
|
||||||
name: macvlan
|
name: macvlan
|
||||||
state: present
|
state: present
|
||||||
config: {}
|
config: {}
|
||||||
description: 'my macvlan profile'
|
description: my macvlan profile
|
||||||
devices:
|
devices:
|
||||||
eth0:
|
eth0:
|
||||||
nictype: macvlan
|
nictype: macvlan
|
||||||
|
|
|
@ -64,22 +64,22 @@ EXAMPLES = '''
|
||||||
# Create a simple annotation event with a source, defaults to start and end time of now
|
# Create a simple annotation event with a source, defaults to start and end time of now
|
||||||
- circonus_annotation:
|
- circonus_annotation:
|
||||||
api_key: XXXXXXXXXXXXXXXXX
|
api_key: XXXXXXXXXXXXXXXXX
|
||||||
title: 'App Config Change'
|
title: App Config Change
|
||||||
description: 'This is a detailed description of the config change'
|
description: This is a detailed description of the config change
|
||||||
category: 'This category groups like annotations'
|
category: This category groups like annotations
|
||||||
# Create an annotation with a duration of 5 minutes and a default start time of now
|
# Create an annotation with a duration of 5 minutes and a default start time of now
|
||||||
- circonus_annotation:
|
- circonus_annotation:
|
||||||
api_key: XXXXXXXXXXXXXXXXX
|
api_key: XXXXXXXXXXXXXXXXX
|
||||||
title: 'App Config Change'
|
title: App Config Change
|
||||||
description: 'This is a detailed description of the config change'
|
description: This is a detailed description of the config change
|
||||||
category: 'This category groups like annotations'
|
category: This category groups like annotations
|
||||||
duration: 300
|
duration: 300
|
||||||
# Create an annotation with a start_time and end_time
|
# Create an annotation with a start_time and end_time
|
||||||
- circonus_annotation:
|
- circonus_annotation:
|
||||||
api_key: XXXXXXXXXXXXXXXXX
|
api_key: XXXXXXXXXXXXXXXXX
|
||||||
title: 'App Config Change'
|
title: App Config Change
|
||||||
description: 'This is a detailed description of the config change'
|
description: This is a detailed description of the config change
|
||||||
category: 'This category groups like annotations'
|
category: This category groups like annotations
|
||||||
start_time: 1395940006
|
start_time: 1395940006
|
||||||
end_time: 1395954407
|
end_time: 1395954407
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -77,27 +77,28 @@ EXAMPLES = '''
|
||||||
- librato_annotation:
|
- librato_annotation:
|
||||||
user: user@example.com
|
user: user@example.com
|
||||||
api_key: XXXXXXXXXXXXXXXXX
|
api_key: XXXXXXXXXXXXXXXXX
|
||||||
title: 'App Config Change'
|
title: App Config Change
|
||||||
source: 'foo.bar'
|
source: foo.bar
|
||||||
description: 'This is a detailed description of the config change'
|
description: This is a detailed description of the config change
|
||||||
|
|
||||||
# Create an annotation that includes a link
|
# Create an annotation that includes a link
|
||||||
- librato_annotation:
|
- librato_annotation:
|
||||||
user: user@example.com
|
user: user@example.com
|
||||||
api_key: XXXXXXXXXXXXXXXXXX
|
api_key: XXXXXXXXXXXXXXXXXX
|
||||||
name: 'code.deploy'
|
name: code.deploy
|
||||||
title: 'app code deploy'
|
title: app code deploy
|
||||||
description: 'this is a detailed description of a deployment'
|
description: this is a detailed description of a deployment
|
||||||
links:
|
links:
|
||||||
- { rel: 'example', href: 'http://www.example.com/deploy' }
|
- rel: example
|
||||||
|
href: http://www.example.com/deploy
|
||||||
|
|
||||||
# Create an annotation with a start_time and end_time
|
# Create an annotation with a start_time and end_time
|
||||||
- librato_annotation:
|
- librato_annotation:
|
||||||
user: user@example.com
|
user: user@example.com
|
||||||
api_key: XXXXXXXXXXXXXXXXXX
|
api_key: XXXXXXXXXXXXXXXXXX
|
||||||
name: 'maintenance'
|
name: maintenance
|
||||||
title: 'Maintenance window'
|
title: Maintenance window
|
||||||
description: 'This is a detailed description of maintenance'
|
description: This is a detailed description of maintenance
|
||||||
start_time: 1395940006
|
start_time: 1395940006
|
||||||
end_time: 1395954406
|
end_time: 1395954406
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -78,9 +78,9 @@ EXAMPLES = '''
|
||||||
- name: Authorize key with GitHub
|
- name: Authorize key with GitHub
|
||||||
local_action:
|
local_action:
|
||||||
module: github_key
|
module: github_key
|
||||||
name: 'Access Key for Some Machine'
|
name: Access Key for Some Machine
|
||||||
token: '{{github_access_token}}'
|
token: '{{ github_access_token }}'
|
||||||
pubkey: '{{ssh_pub_key.stdout}}'
|
pubkey: '{{ ssh_pub_key.stdout }}'
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -73,12 +73,12 @@ EXAMPLES = '''
|
||||||
- name: Test module
|
- name: Test module
|
||||||
netapp_e_auth:
|
netapp_e_auth:
|
||||||
name: trex
|
name: trex
|
||||||
current_password: 'B4Dpwd'
|
current_password: OldPasswd
|
||||||
new_password: 'W0rs3P4sswd'
|
new_password: NewPasswd
|
||||||
set_admin: yes
|
set_admin: yes
|
||||||
api_url: "{{ netapp_api_url }}"
|
api_url: '{{ netapp_api_url }}'
|
||||||
api_username: "{{ netapp_api_username }}"
|
api_username: '{{ netapp_api_username }}'
|
||||||
api_password: "{{ netapp_api_password }}"
|
api_password: '{{ netapp_api_password }}'
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
Loading…
Reference in a new issue