mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
YAML fixes for examples in additional modules
This commit is contained in:
committed by
Toshio Kuratomi
parent
7c00346714
commit
78a000502e
@@ -58,23 +58,22 @@ options:
|
||||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
- name: Manage Aggregates
|
||||
na_cdot_aggregate:
|
||||
state: present
|
||||
name: ansibleAggr
|
||||
disk_count: 1
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Manage Aggregates
|
||||
na_cdot_aggregate:
|
||||
state: present
|
||||
name: ansibleAggr
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
- name: Manage Aggregates
|
||||
na_cdot_aggregate:
|
||||
state: present
|
||||
name: ansibleAggr
|
||||
disk_count: 1
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Manage Aggregates
|
||||
na_cdot_aggregate:
|
||||
state: present
|
||||
name: ansibleAggr
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
@@ -77,31 +77,30 @@ options:
|
||||
|
||||
|
||||
EXAMPLES = """
|
||||
- name: Add licenses
|
||||
na_cdot_license:
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
serial_number: #################
|
||||
licenses:
|
||||
nfs: #################
|
||||
cifs: #################
|
||||
iscsi: #################
|
||||
fcp: #################
|
||||
snaprestore: #################
|
||||
flexclone: #################
|
||||
|
||||
- name: Add licenses
|
||||
na_cdot_license:
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
serial_number: #################
|
||||
licenses:
|
||||
nfs: #################
|
||||
cifs: #################
|
||||
iscsi: #################
|
||||
fcp: #################
|
||||
snaprestore: #################
|
||||
flexclone: #################
|
||||
|
||||
- name: Remove licenses
|
||||
na_cdot_license:
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
remove_unused: false
|
||||
remove_expired: true
|
||||
serial_number: #################
|
||||
licenses:
|
||||
nfs: remove
|
||||
- name: Remove licenses
|
||||
na_cdot_license:
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
remove_unused: false
|
||||
remove_expired: true
|
||||
serial_number: #################
|
||||
licenses:
|
||||
nfs: remove
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
@@ -89,32 +89,30 @@ options:
|
||||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
- name: Create LUN
|
||||
na_cdot_lun:
|
||||
state: present
|
||||
name: ansibleLUN
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
size: 5
|
||||
size_unit: mb
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Create LUN
|
||||
na_cdot_lun:
|
||||
state: present
|
||||
name: ansibleLUN
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
size: 5
|
||||
size_unit: mb
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Resize Lun
|
||||
na_cdot_lun:
|
||||
state: present
|
||||
name: ansibleLUN
|
||||
force_resize: True
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
size: 5
|
||||
size_unit: gb
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Resize Lun
|
||||
na_cdot_lun:
|
||||
state: present
|
||||
name: ansibleLUN
|
||||
force_resize: True
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
size: 5
|
||||
size_unit: gb
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
@@ -60,27 +60,25 @@ options:
|
||||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
- name: Create QTree
|
||||
na_cdot_qtree:
|
||||
state: present
|
||||
name: ansibleQTree
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Create QTree
|
||||
na_cdot_qtree:
|
||||
state: present
|
||||
name: ansibleQTree
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Rename QTree
|
||||
na_cdot_qtree:
|
||||
state: present
|
||||
name: ansibleQTree
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
|
||||
- name: Rename QTree
|
||||
na_cdot_qtree:
|
||||
state: present
|
||||
name: ansibleQTree
|
||||
flexvol_name: ansibleVolume
|
||||
vserver: ansibleVServer
|
||||
hostname: "{{ netapp_hostname }}"
|
||||
username: "{{ netapp_username }}"
|
||||
password: "{{ netapp_password }}"
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
@@ -85,30 +85,30 @@ options:
|
||||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
- name: Create Account
|
||||
sf_account_manager:
|
||||
hostname: "{{ solidfire_hostname }}"
|
||||
username: "{{ solidfire_username }}"
|
||||
password: "{{ solidfire_password }}"
|
||||
state: present
|
||||
name: TenantA
|
||||
- name: Create Account
|
||||
sf_account_manager:
|
||||
hostname: "{{ solidfire_hostname }}"
|
||||
username: "{{ solidfire_username }}"
|
||||
password: "{{ solidfire_password }}"
|
||||
state: present
|
||||
name: TenantA
|
||||
|
||||
- name: Modify Account
|
||||
sf_account_manager:
|
||||
hostname: "{{ solidfire_hostname }}"
|
||||
username: "{{ solidfire_username }}"
|
||||
password: "{{ solidfire_password }}"
|
||||
state: present
|
||||
name: TenantA
|
||||
new_name: TenantA-Renamed
|
||||
- name: Modify Account
|
||||
sf_account_manager:
|
||||
hostname: "{{ solidfire_hostname }}"
|
||||
username: "{{ solidfire_username }}"
|
||||
password: "{{ solidfire_password }}"
|
||||
state: present
|
||||
name: TenantA
|
||||
new_name: TenantA-Renamed
|
||||
|
||||
- name: Delete Account
|
||||
sf_account_manager:
|
||||
hostname: "{{ solidfire_hostname }}"
|
||||
username: "{{ solidfire_username }}"
|
||||
password: "{{ solidfire_password }}"
|
||||
state: absent
|
||||
name: TenantA-Renamed
|
||||
- name: Delete Account
|
||||
sf_account_manager:
|
||||
hostname: "{{ solidfire_hostname }}"
|
||||
username: "{{ solidfire_username }}"
|
||||
password: "{{ solidfire_password }}"
|
||||
state: absent
|
||||
name: TenantA-Renamed
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
Reference in New Issue
Block a user