mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix code-blocks to use correct syntax highlighting
This commit is contained in:
@@ -87,22 +87,22 @@ EXAMPLES = '''
|
||||
stack_policy: true
|
||||
|
||||
# Example dictionary outputs for stack_outputs, stack_parameters and stack_resources:
|
||||
"stack_outputs": {
|
||||
"ApplicationDatabaseName": "dazvlpr01xj55a.ap-southeast-2.rds.amazonaws.com",
|
||||
...
|
||||
},
|
||||
"stack_parameters": {
|
||||
"DatabaseEngine": "mysql",
|
||||
"DatabasePassword": "****",
|
||||
...
|
||||
},
|
||||
"stack_resources": {
|
||||
"AutoscalingGroup": "dev-someapp-AutoscalingGroup-1SKEXXBCAN0S7",
|
||||
"AutoscalingSecurityGroup": "sg-abcd1234",
|
||||
"ApplicationDatabase": "dazvlpr01xj55a",
|
||||
"EcsTaskDefinition": "arn:aws:ecs:ap-southeast-2:123456789:task-definition/dev-someapp-EcsTaskDefinition-1F2VM9QB0I7K9:1"
|
||||
...
|
||||
}
|
||||
# "stack_outputs": {
|
||||
# "ApplicationDatabaseName": "dazvlpr01xj55a.ap-southeast-2.rds.amazonaws.com",
|
||||
# ...
|
||||
# },
|
||||
# "stack_parameters": {
|
||||
# "DatabaseEngine": "mysql",
|
||||
# "DatabasePassword": "****",
|
||||
# ...
|
||||
# },
|
||||
# "stack_resources": {
|
||||
# "AutoscalingGroup": "dev-someapp-AutoscalingGroup-1SKEXXBCAN0S7",
|
||||
# "AutoscalingSecurityGroup": "sg-abcd1234",
|
||||
# "ApplicationDatabase": "dazvlpr01xj55a",
|
||||
# "EcsTaskDefinition": "arn:aws:ecs:ap-southeast-2:123456789:task-definition/dev-someapp-EcsTaskDefinition-1F2VM9QB0I7K9:1"
|
||||
# ...
|
||||
# }
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
||||
@@ -50,12 +50,14 @@ EXAMPLES = '''
|
||||
with_items: "{{ xs_vms.keys() }}"
|
||||
when: xs_vms[item]['power_state'] == "Running"
|
||||
|
||||
TASK: [Print running VMs] ***********************************************************
|
||||
skipping: [10.13.0.22] => (item=CentOS 4.7 (32-bit))
|
||||
ok: [10.13.0.22] => (item=Control domain on host: 10.0.13.22) => {
|
||||
"item": "Control domain on host: 10.0.13.22",
|
||||
"msg": "Control domain on host: 10.0.13.22"
|
||||
}
|
||||
# Which will print:
|
||||
#
|
||||
# TASK: [Print running VMs] ***********************************************************
|
||||
# skipping: [10.13.0.22] => (item=CentOS 4.7 (32-bit))
|
||||
# ok: [10.13.0.22] => (item=Control domain on host: 10.0.13.22) => {
|
||||
# "item": "Control domain on host: 10.0.13.22",
|
||||
# "msg": "Control domain on host: 10.0.13.22"
|
||||
# }
|
||||
'''
|
||||
|
||||
class XenServerFacts:
|
||||
|
||||
@@ -291,7 +291,7 @@ EXAMPLES = '''
|
||||
hw_guest_id: "rhel6_64Guest"
|
||||
hw_memtotal_mb: 2048
|
||||
hw_name: "centos64Guest"
|
||||
hw_power_status: "POWERED ON",
|
||||
hw_power_status: "POWERED ON"
|
||||
hw_processor_count: 2
|
||||
hw_product_uuid: "ef50bac8-2845-40ff-81d9-675315501dac"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user