1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Native YAML, improve quotation (#3643)

This commit is contained in:
Fabio Alessandro Locati 2016-12-05 04:15:23 +00:00 committed by Matt Clay
parent 8b31d48410
commit 7d1a006629
11 changed files with 69 additions and 60 deletions

View file

@ -134,7 +134,7 @@ EXAMPLES = '''
route53_facts:
profile: account_name
query: record_sets
hosted_zone_id: 'ZZZ1111112222'
hosted_zone_id: ZZZ1111112222
max_items: 20
register: record_sets
@ -149,13 +149,13 @@ EXAMPLES = '''
route53_facts:
query: health_check
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
- name: Retrieve reusable delegation set details
route53_facts:
query: reusable_delegation_set
delegation_set_id: 'delegation id'
delegation_set_id: delegation id
register: delegation_sets
'''

View file

@ -74,13 +74,14 @@ EXAMPLES = '''
tasks:
- name: Create an Anti Affinity Policy
clc_aa_policy:
name: 'Hammer Time'
location: 'UK3'
name: Hammer Time
location: UK3
state: present
register: policy
- name: debug
debug: var=policy
debug:
var: policy
---
- name: Delete AA Policy
@ -90,13 +91,14 @@ EXAMPLES = '''
tasks:
- name: Delete an Anti Affinity Policy
clc_aa_policy:
name: 'Hammer Time'
location: 'UK3'
name: Hammer Time
location: UK3
state: absent
register: policy
- name: debug
debug: var=policy
debug:
var: policy
'''
RETURN = '''

View file

@ -126,7 +126,7 @@ EXAMPLES = '''
source_account_alias: WFAD
location: VA1
state: absent
firewall_policy_id: 'c62105233d7a4231bd2e91b9c791e43e1'
firewall_policy_id: c62105233d7a4231bd2e91b9c791e43e1
'''
RETURN = '''

View file

@ -83,13 +83,14 @@ EXAMPLES = '''
tasks:
- name: Create / Verify a Server Group at CenturyLink Cloud
clc_group:
name: 'My Cool Server Group'
parent: 'Default Group'
name: My Cool Server Group
parent: Default Group
state: present
register: clc
- name: debug
debug: var=clc
debug:
var: clc
# Delete a Server Group
@ -101,14 +102,14 @@ EXAMPLES = '''
tasks:
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud
clc_group:
name: 'My Cool Server Group'
parent: 'Default Group'
name: My Cool Server Group
parent: Default Group
state: absent
register: clc
- name: debug
debug: var=clc
debug:
var: clc
'''
RETURN = '''

View file

@ -81,17 +81,18 @@ EXAMPLES = '''
tasks:
- name: Create Public IP For Servers
clc_publicip:
protocol: 'TCP'
protocol: TCP
ports:
- 80
- 80
server_ids:
- UC1TEST-SVR01
- UC1TEST-SVR02
- UC1TEST-SVR01
- UC1TEST-SVR02
state: present
register: clc
- name: debug
debug: var=clc
debug:
var: clc
- name: Delete Public IP from Server
hosts: localhost
@ -101,13 +102,14 @@ EXAMPLES = '''
- name: Create Public IP For Servers
clc_publicip:
server_ids:
- UC1TEST-SVR01
- UC1TEST-SVR02
- UC1TEST-SVR01
- UC1TEST-SVR02
state: absent
register: clc
- name: debug
debug: var=clc
debug:
var: clc
'''
RETURN = '''

View file

@ -249,7 +249,7 @@ EXAMPLES = '''
name: test
template: ubuntu-14-64
count: 1
group: 'Default Group'
group: Default Group
state: present
- name: Ensure 'Default Group' has exactly 5 servers
@ -257,22 +257,25 @@ EXAMPLES = '''
name: test
template: ubuntu-14-64
exact_count: 5
count_group: 'Default Group'
group: 'Default Group'
count_group: Default Group
group: Default Group
- name: Stop a Server
clc_server:
server_ids: ['UC1ACCT-TEST01']
server_ids:
- UC1ACCT-TEST01
state: stopped
- name: Start a Server
clc_server:
server_ids: ['UC1ACCT-TEST01']
server_ids:
- UC1ACCT-TEST01
state: started
- name: Delete a Server
clc_server:
server_ids: ['UC1ACCT-TEST01']
server_ids:
- UC1ACCT-TEST01
state: absent
'''

View file

@ -105,7 +105,7 @@ EXAMPLES = '''
name: macvlan
state: present
config: {}
description: 'my macvlan profile'
description: my macvlan profile
devices:
eth0:
nictype: macvlan
@ -126,7 +126,7 @@ EXAMPLES = '''
name: macvlan
state: present
config: {}
description: 'my macvlan profile'
description: my macvlan profile
devices:
eth0:
nictype: macvlan

View file

@ -64,22 +64,22 @@ EXAMPLES = '''
# Create a simple annotation event with a source, defaults to start and end time of now
- circonus_annotation:
api_key: XXXXXXXXXXXXXXXXX
title: 'App Config Change'
description: 'This is a detailed description of the config change'
category: 'This category groups like annotations'
title: App Config Change
description: This is a detailed description of the config change
category: This category groups like annotations
# Create an annotation with a duration of 5 minutes and a default start time of now
- circonus_annotation:
api_key: XXXXXXXXXXXXXXXXX
title: 'App Config Change'
description: 'This is a detailed description of the config change'
category: 'This category groups like annotations'
title: App Config Change
description: This is a detailed description of the config change
category: This category groups like annotations
duration: 300
# Create an annotation with a start_time and end_time
- circonus_annotation:
api_key: XXXXXXXXXXXXXXXXX
title: 'App Config Change'
description: 'This is a detailed description of the config change'
category: 'This category groups like annotations'
title: App Config Change
description: This is a detailed description of the config change
category: This category groups like annotations
start_time: 1395940006
end_time: 1395954407
'''

View file

@ -77,27 +77,28 @@ EXAMPLES = '''
- librato_annotation:
user: user@example.com
api_key: XXXXXXXXXXXXXXXXX
title: 'App Config Change'
source: 'foo.bar'
description: 'This is a detailed description of the config change'
title: App Config Change
source: foo.bar
description: This is a detailed description of the config change
# Create an annotation that includes a link
- librato_annotation:
user: user@example.com
api_key: XXXXXXXXXXXXXXXXXX
name: 'code.deploy'
title: 'app code deploy'
description: 'this is a detailed description of a deployment'
name: code.deploy
title: app code deploy
description: this is a detailed description of a deployment
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
- librato_annotation:
user: user@example.com
api_key: XXXXXXXXXXXXXXXXXX
name: 'maintenance'
title: 'Maintenance window'
description: 'This is a detailed description of maintenance'
name: maintenance
title: Maintenance window
description: This is a detailed description of maintenance
start_time: 1395940006
end_time: 1395954406
'''

View file

@ -78,9 +78,9 @@ EXAMPLES = '''
- name: Authorize key with GitHub
local_action:
module: github_key
name: 'Access Key for Some Machine'
token: '{{github_access_token}}'
pubkey: '{{ssh_pub_key.stdout}}'
name: Access Key for Some Machine
token: '{{ github_access_token }}'
pubkey: '{{ ssh_pub_key.stdout }}'
'''

View file

@ -73,12 +73,12 @@ EXAMPLES = '''
- name: Test module
netapp_e_auth:
name: trex
current_password: 'B4Dpwd'
new_password: 'W0rs3P4sswd'
current_password: OldPasswd
new_password: NewPasswd
set_admin: yes
api_url: "{{ netapp_api_url }}"
api_username: "{{ netapp_api_username }}"
api_password: "{{ netapp_api_password }}"
api_url: '{{ netapp_api_url }}'
api_username: '{{ netapp_api_username }}'
api_password: '{{ netapp_api_password }}'
'''
RETURN = '''