YAML fixes for examples in additional modules

This commit is contained in:
Matt Martz 2017-02-15 10:42:00 -06:00 committed by Toshio Kuratomi
parent 7c00346714
commit 78a000502e
9 changed files with 110 additions and 112 deletions

View file

@ -112,13 +112,13 @@ EXAMPLES = '''
spawn ssh admin@{{ cimc_host }}
expect "password:"
send "{{ cimc_password }}\n"
send "{{ cimc_password }}\\n"
expect "\n{{ cimc_name }}"
send "connect host\n"
expect "\\n{{ cimc_name }}"
send "connect host\\n"
expect "pxeboot.n12"
send "\n"
send "\\n"
exit 0
args:

View file

@ -146,6 +146,7 @@ options:
"""
EXAMPLES = """
---
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
vars:
@ -155,6 +156,7 @@ vars:
password: password
transport: cli
---
- name: configure top level configuration
ordnance_config:
lines: hostname {{ inventory_hostname }}

View file

@ -45,6 +45,7 @@ options:
"""
EXAMPLES = """
---
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
vars:
@ -54,6 +55,7 @@ vars:
password: ordnance
transport: cli
---
# Collect all facts from the device
- ordnance_facts:
gather_subset: all

View file

@ -87,7 +87,7 @@ options:
'''
EXAMPLES = '''
- name Update the OS to the latest version
- name: Update the OS to the latest version
swupd:
update: yes

View file

@ -58,7 +58,7 @@ options:
'''
EXAMPLES = """
- name: Manage Aggregates
- name: Manage Aggregates
na_cdot_aggregate:
state: present
name: ansibleAggr
@ -67,14 +67,13 @@ EXAMPLES = """
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
- name: Manage Aggregates
- name: Manage Aggregates
na_cdot_aggregate:
state: present
name: ansibleAggr
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
"""
RETURN = """

View file

@ -77,8 +77,7 @@ options:
EXAMPLES = """
- name: Add licenses
- name: Add licenses
na_cdot_license:
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
@ -92,7 +91,7 @@ EXAMPLES = """
snaprestore: #################
flexclone: #################
- name: Remove licenses
- name: Remove licenses
na_cdot_license:
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"

View file

@ -89,8 +89,7 @@ options:
'''
EXAMPLES = """
- name: Create LUN
- name: Create LUN
na_cdot_lun:
state: present
name: ansibleLUN
@ -102,7 +101,7 @@ EXAMPLES = """
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
- name: Resize Lun
- name: Resize Lun
na_cdot_lun:
state: present
name: ansibleLUN
@ -114,7 +113,6 @@ EXAMPLES = """
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
"""
RETURN = """

View file

@ -60,8 +60,7 @@ options:
'''
EXAMPLES = """
- name: Create QTree
- name: Create QTree
na_cdot_qtree:
state: present
name: ansibleQTree
@ -71,7 +70,7 @@ EXAMPLES = """
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
- name: Rename QTree
- name: Rename QTree
na_cdot_qtree:
state: present
name: ansibleQTree
@ -80,7 +79,6 @@ EXAMPLES = """
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
"""
RETURN = """

View file

@ -85,7 +85,7 @@ options:
'''
EXAMPLES = """
- name: Create Account
- name: Create Account
sf_account_manager:
hostname: "{{ solidfire_hostname }}"
username: "{{ solidfire_username }}"
@ -93,7 +93,7 @@ EXAMPLES = """
state: present
name: TenantA
- name: Modify Account
- name: Modify Account
sf_account_manager:
hostname: "{{ solidfire_hostname }}"
username: "{{ solidfire_username }}"
@ -102,7 +102,7 @@ EXAMPLES = """
name: TenantA
new_name: TenantA-Renamed
- name: Delete Account
- name: Delete Account
sf_account_manager:
hostname: "{{ solidfire_hostname }}"
username: "{{ solidfire_username }}"