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 }} spawn ssh admin@{{ cimc_host }}
expect "password:" expect "password:"
send "{{ cimc_password }}\n" send "{{ cimc_password }}\\n"
expect "\n{{ cimc_name }}" expect "\\n{{ cimc_name }}"
send "connect host\n" send "connect host\\n"
expect "pxeboot.n12" expect "pxeboot.n12"
send "\n" send "\\n"
exit 0 exit 0
args: args:

View file

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

View file

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

View file

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

View file

@ -74,7 +74,6 @@ EXAMPLES = """
hostname: "{{ netapp_hostname }}" hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}" username: "{{ netapp_username }}"
password: "{{ netapp_password }}" password: "{{ netapp_password }}"
""" """
RETURN = """ RETURN = """

View file

@ -77,7 +77,6 @@ options:
EXAMPLES = """ EXAMPLES = """
- name: Add licenses - name: Add licenses
na_cdot_license: na_cdot_license:
hostname: "{{ netapp_hostname }}" hostname: "{{ netapp_hostname }}"

View file

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

View file

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