YAML fixes for examples in additional modules

pull/21497/head
Matt Martz 9 years ago committed by Toshio Kuratomi
parent 7c00346714
commit 78a000502e

@ -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:

@ -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 }}

@ -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

@ -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

@ -58,23 +58,22 @@ options:
''' '''
EXAMPLES = """ EXAMPLES = """
- name: Manage Aggregates - name: Manage Aggregates
na_cdot_aggregate: na_cdot_aggregate:
state: present state: present
name: ansibleAggr name: ansibleAggr
disk_count: 1 disk_count: 1
hostname: "{{ netapp_hostname }}" hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}" username: "{{ netapp_username }}"
password: "{{ netapp_password }}" password: "{{ netapp_password }}"
- name: Manage Aggregates - name: Manage Aggregates
na_cdot_aggregate: na_cdot_aggregate:
state: present state: present
name: ansibleAggr name: ansibleAggr
hostname: "{{ netapp_hostname }}" hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}" username: "{{ netapp_username }}"
password: "{{ netapp_password }}" password: "{{ netapp_password }}"
""" """
RETURN = """ RETURN = """

@ -77,31 +77,30 @@ options:
EXAMPLES = """ EXAMPLES = """
- name: Add licenses
- name: Add licenses na_cdot_license:
na_cdot_license: hostname: "{{ netapp_hostname }}"
hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}"
username: "{{ netapp_username }}" password: "{{ netapp_password }}"
password: "{{ netapp_password }}" serial_number: #################
serial_number: ################# licenses:
licenses: nfs: #################
nfs: ################# cifs: #################
cifs: ################# iscsi: #################
iscsi: ################# fcp: #################
fcp: ################# snaprestore: #################
snaprestore: ################# flexclone: #################
flexclone: #################
- name: Remove licenses
- name: Remove licenses na_cdot_license:
na_cdot_license: hostname: "{{ netapp_hostname }}"
hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}"
username: "{{ netapp_username }}" password: "{{ netapp_password }}"
password: "{{ netapp_password }}" remove_unused: false
remove_unused: false remove_expired: true
remove_expired: true serial_number: #################
serial_number: ################# licenses:
licenses: nfs: remove
nfs: remove
""" """
RETURN = """ RETURN = """

@ -89,32 +89,30 @@ options:
''' '''
EXAMPLES = """ EXAMPLES = """
- name: Create LUN
- name: Create LUN na_cdot_lun:
na_cdot_lun: state: present
state: present name: ansibleLUN
name: ansibleLUN flexvol_name: ansibleVolume
flexvol_name: ansibleVolume vserver: ansibleVServer
vserver: ansibleVServer size: 5
size: 5 size_unit: mb
size_unit: mb hostname: "{{ netapp_hostname }}"
hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}"
username: "{{ netapp_username }}" password: "{{ netapp_password }}"
password: "{{ netapp_password }}"
- name: Resize Lun
- name: Resize Lun na_cdot_lun:
na_cdot_lun: state: present
state: present name: ansibleLUN
name: ansibleLUN force_resize: True
force_resize: True flexvol_name: ansibleVolume
flexvol_name: ansibleVolume vserver: ansibleVServer
vserver: ansibleVServer size: 5
size: 5 size_unit: gb
size_unit: gb hostname: "{{ netapp_hostname }}"
hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}"
username: "{{ netapp_username }}" password: "{{ netapp_password }}"
password: "{{ netapp_password }}"
""" """
RETURN = """ RETURN = """

@ -60,27 +60,25 @@ options:
''' '''
EXAMPLES = """ EXAMPLES = """
- name: Create QTree
- name: Create QTree na_cdot_qtree:
na_cdot_qtree: state: present
state: present name: ansibleQTree
name: ansibleQTree flexvol_name: ansibleVolume
flexvol_name: ansibleVolume vserver: ansibleVServer
vserver: ansibleVServer hostname: "{{ netapp_hostname }}"
hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}"
username: "{{ netapp_username }}" password: "{{ netapp_password }}"
password: "{{ netapp_password }}"
- name: Rename QTree
- name: Rename QTree na_cdot_qtree:
na_cdot_qtree: state: present
state: present name: ansibleQTree
name: ansibleQTree flexvol_name: ansibleVolume
flexvol_name: ansibleVolume vserver: ansibleVServer
vserver: ansibleVServer hostname: "{{ netapp_hostname }}"
hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}"
username: "{{ netapp_username }}" password: "{{ netapp_password }}"
password: "{{ netapp_password }}"
""" """
RETURN = """ RETURN = """

@ -85,30 +85,30 @@ options:
''' '''
EXAMPLES = """ EXAMPLES = """
- name: Create Account - name: Create Account
sf_account_manager: sf_account_manager:
hostname: "{{ solidfire_hostname }}" hostname: "{{ solidfire_hostname }}"
username: "{{ solidfire_username }}" username: "{{ solidfire_username }}"
password: "{{ solidfire_password }}" password: "{{ solidfire_password }}"
state: present state: present
name: TenantA name: TenantA
- name: Modify Account - name: Modify Account
sf_account_manager: sf_account_manager:
hostname: "{{ solidfire_hostname }}" hostname: "{{ solidfire_hostname }}"
username: "{{ solidfire_username }}" username: "{{ solidfire_username }}"
password: "{{ solidfire_password }}" password: "{{ solidfire_password }}"
state: present state: present
name: TenantA name: TenantA
new_name: TenantA-Renamed new_name: TenantA-Renamed
- name: Delete Account - name: Delete Account
sf_account_manager: sf_account_manager:
hostname: "{{ solidfire_hostname }}" hostname: "{{ solidfire_hostname }}"
username: "{{ solidfire_username }}" username: "{{ solidfire_username }}"
password: "{{ solidfire_password }}" password: "{{ solidfire_password }}"
state: absent state: absent
name: TenantA-Renamed name: TenantA-Renamed
""" """
RETURN = """ RETURN = """

Loading…
Cancel
Save