summaryrefslogtreecommitdiffstats
path: root/ansible_collections/dellemc/unity/plugins
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:18:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:18:34 +0000
commit3667197efb7b18ec842efd504785965911f8ac4b (patch)
tree0b986a4bc6879d080b100666a97cdabbc9ca1f28 /ansible_collections/dellemc/unity/plugins
parentAdding upstream version 9.5.1+dfsg. (diff)
downloadansible-upstream/10.0.0+dfsg.tar.xz
ansible-upstream/10.0.0+dfsg.zip
Adding upstream version 10.0.0+dfsg.upstream/10.0.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/dellemc/unity/plugins')
-rw-r--r--ansible_collections/dellemc/unity/plugins/doc_fragments/unity.py4
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/consistencygroup.py32
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/filesystem.py10
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/filesystem_snapshot.py170
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/info.py428
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/interface.py98
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/nasserver.py264
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/nfs.py20
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/nfsserver.py100
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/snapshot.py146
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/snapshotschedule.py8
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/storagepool.py25
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/tree_quota.py182
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/user_quota.py328
-rw-r--r--ansible_collections/dellemc/unity/plugins/modules/volume.py8
15 files changed, 911 insertions, 912 deletions
diff --git a/ansible_collections/dellemc/unity/plugins/doc_fragments/unity.py b/ansible_collections/dellemc/unity/plugins/doc_fragments/unity.py
index 0df468567..a712a8037 100644
--- a/ansible_collections/dellemc/unity/plugins/doc_fragments/unity.py
+++ b/ansible_collections/dellemc/unity/plugins/doc_fragments/unity.py
@@ -1,4 +1,4 @@
-# Copyright: (c) 2020, Dell Technologies.
+# Copyright: (c) 2024, Dell Technologies.
# Apache License version 2.0 (see MODULE-LICENSE or http://www.apache.org/licenses/LICENSE-2.0.txt)
from __future__ import absolute_import, division, print_function
@@ -44,7 +44,7 @@ class ModuleDocFragment(object):
default: 443
requirements:
- A Dell Unity Storage device version 5.1 or later.
- - Ansible-core 2.13 or later.
+ - Ansible-core 2.14 or later.
- Python 3.9, 3.10 or 3.11.
- Storops Python SDK 1.2.11.
notes:
diff --git a/ansible_collections/dellemc/unity/plugins/modules/consistencygroup.py b/ansible_collections/dellemc/unity/plugins/modules/consistencygroup.py
index e0d6a6c06..c5c4b5599 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/consistencygroup.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/consistencygroup.py
@@ -267,8 +267,8 @@ EXAMPLES = r"""
validate_certs: "{{validate_certs}}"
cg_id: "{{cg_id}}"
hosts:
- - host_name: "10.226.198.248"
- - host_id: "Host_511"
+ - host_name: "10.226.198.248"
+ - host_id: "Host_511"
mapping_state: "mapped"
state: "present"
@@ -280,8 +280,8 @@ EXAMPLES = r"""
validate_certs: "{{validate_certs}}"
cg_id: "{{cg_id}}"
hosts:
- - host_id: "Host_511"
- - host_name: "10.226.198.248"
+ - host_id: "Host_511"
+ - host_name: "10.226.198.248"
mapping_state: "unmapped"
state: "present"
@@ -293,8 +293,8 @@ EXAMPLES = r"""
validate_certs: "{{validate_certs}}"
cg_name: "{{new_cg_name}}"
volumes:
- - vol_name: "Ansible_Test-3"
- - vol_id: "sv_1744"
+ - vol_name: "Ansible_Test-3"
+ - vol_id: "sv_1744"
vol_state: "{{vol_state_absent}}"
state: "present"
@@ -315,16 +315,16 @@ EXAMPLES = r"""
validate_certs: "{{validate_certs}}"
cg_id: "cg_id_1"
replication_params:
- destination_cg_name: "destination_cg_1"
- replication_mode: "asynchronous"
- rpo: 60
- replication_type: "remote"
- remote_system:
- remote_system_host: '10.1.2.3'
- remote_system_verifycert: false
- remote_system_username: 'username'
- remote_system_password: 'password'
- destination_pool_name: "pool_test_1"
+ destination_cg_name: "destination_cg_1"
+ replication_mode: "asynchronous"
+ rpo: 60
+ replication_type: "remote"
+ remote_system:
+ remote_system_host: '10.1.2.3'
+ remote_system_verifycert: false
+ remote_system_username: 'username'
+ remote_system_password: 'password'
+ destination_pool_name: "pool_test_1"
replication_state: "enable"
state: "present"
diff --git a/ansible_collections/dellemc/unity/plugins/modules/filesystem.py b/ansible_collections/dellemc/unity/plugins/modules/filesystem.py
index 95cffeec6..d8057ac4e 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/filesystem.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/filesystem.py
@@ -327,10 +327,10 @@ EXAMPLES = r"""
pool_name: "pool_1"
size: 5
quota_config:
- grace_period: 8
- grace_period_unit: "days"
- default_soft_limit: 10
- is_user_quota_enabled: false
+ grace_period: 8
+ grace_period_unit: "days"
+ default_soft_limit: 10
+ is_user_quota_enabled: false
state: "present"
- name: Expand FileSystem size
@@ -451,7 +451,7 @@ EXAMPLES = r"""
validate_certs: "{{validate_certs}}"
filesystem_id: "rs_405"
replication_params:
- replication_name: "test_replication"
+ replication_name: "test_replication"
replication_state: "disable"
state: "present"
"""
diff --git a/ansible_collections/dellemc/unity/plugins/modules/filesystem_snapshot.py b/ansible_collections/dellemc/unity/plugins/modules/filesystem_snapshot.py
index a82fbe89b..93258c84b 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/filesystem_snapshot.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/filesystem_snapshot.py
@@ -112,91 +112,91 @@ notes:
'''
EXAMPLES = r'''
- - name: Create Filesystem Snapshot
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "ansible_test_FS_snap"
- filesystem_name: "ansible_test_FS"
- nas_server_name: "lglad069"
- description: "Created using playbook"
- auto_delete: true
- fs_access_type: "Protocol"
- state: "present"
-
- - name: Create Filesystem Snapshot with expiry time
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "ansible_test_FS_snap_1"
- filesystem_name: "ansible_test_FS_1"
- nas_server_name: "lglad069"
- description: "Created using playbook"
- expiry_time: "04/15/2021 2:30"
- fs_access_type: "Protocol"
- state: "present"
-
- - name: Get Filesystem Snapshot Details using Name
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "ansible_test_FS_snap"
- state: "present"
-
- - name: Get Filesystem Snapshot Details using ID
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_id: "10008000403"
- state: "present"
-
- - name: Update Filesystem Snapshot attributes
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "ansible_test_FS_snap"
- description: "Description updated"
- auto_delete: false
- expiry_time: "04/15/2021 5:30"
- state: "present"
-
- - name: Update Filesystem Snapshot attributes using ID
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_id: "10008000403"
- expiry_time: "04/18/2021 8:30"
- state: "present"
-
- - name: Delete Filesystem Snapshot using Name
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "ansible_test_FS_snap"
- state: "absent"
-
- - name: Delete Filesystem Snapshot using ID
- dellemc.unity.filesystem_snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_id: "10008000403"
- state: "absent"
+- name: Create Filesystem Snapshot
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "ansible_test_FS_snap"
+ filesystem_name: "ansible_test_FS"
+ nas_server_name: "lglad069"
+ description: "Created using playbook"
+ auto_delete: true
+ fs_access_type: "Protocol"
+ state: "present"
+
+- name: Create Filesystem Snapshot with expiry time
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "ansible_test_FS_snap_1"
+ filesystem_name: "ansible_test_FS_1"
+ nas_server_name: "lglad069"
+ description: "Created using playbook"
+ expiry_time: "04/15/2021 2:30"
+ fs_access_type: "Protocol"
+ state: "present"
+
+- name: Get Filesystem Snapshot Details using Name
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "ansible_test_FS_snap"
+ state: "present"
+
+- name: Get Filesystem Snapshot Details using ID
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_id: "10008000403"
+ state: "present"
+
+- name: Update Filesystem Snapshot attributes
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "ansible_test_FS_snap"
+ description: "Description updated"
+ auto_delete: false
+ expiry_time: "04/15/2021 5:30"
+ state: "present"
+
+- name: Update Filesystem Snapshot attributes using ID
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_id: "10008000403"
+ expiry_time: "04/18/2021 8:30"
+ state: "present"
+
+- name: Delete Filesystem Snapshot using Name
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "ansible_test_FS_snap"
+ state: "absent"
+
+- name: Delete Filesystem Snapshot using ID
+ dellemc.unity.filesystem_snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_id: "10008000403"
+ state: "absent"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/info.py b/ansible_collections/dellemc/unity/plugins/modules/info.py
index 641074286..b924d674a 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/info.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/info.py
@@ -64,220 +64,220 @@ notes:
'''
EXAMPLES = r'''
- - name: Get detailed list of Unity entities
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - host
- - fc_initiator
- - iscsi_initiator
- - cg
- - storage_pool
- - vol
- - snapshot_schedule
- - nas_server
- - file_system
- - snapshot
- - nfs_export
- - smb_share
- - user_quota
- - tree_quota
- - disk_group
- - nfs_server
- - cifs_server
- - ethernet_port
- - file_interface
- - replication_session
-
- - name: Get information of Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
-
- - name: Get list of hosts on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - host
-
- - name: Get list of FC initiators on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - fc_initiator
-
- - name: Get list of ISCSI initiators on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - iscsi_initiator
-
- - name: Get list of consistency groups on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - cg
-
- - name: Get list of storage pools on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - storage_pool
-
- - name: Get list of volumes on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - vol
-
- - name: Get list of snapshot schedules on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - snapshot_schedule
-
- - name: Get list of NAS Servers on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - nas_server
-
- - name: Get list of File Systems on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - file_system
-
- - name: Get list of Snapshots on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - snapshot
-
- - name: Get list of NFS exports on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - nfs_export
-
- - name: Get list of SMB shares on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - smb_share
-
- - name: Get list of user quotas on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - user_quota
-
- - name: Get list of quota trees on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - tree_quota
-
- - name: Get list of disk groups on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - disk_group
-
- - name: Get list of NFS Servers on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - nfs_server
-
- - name: Get list of CIFS Servers on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - cifs_server
-
- - name: Get list of ethernet ports on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - ethernet_port
-
- - name: Get list of file interfaces on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - file_interface
-
- - name: Get list of replication sessions on Unity array
- dellemc.unity.info:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- gather_subset:
- - replication_session
+- name: Get detailed list of Unity entities
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - host
+ - fc_initiator
+ - iscsi_initiator
+ - cg
+ - storage_pool
+ - vol
+ - snapshot_schedule
+ - nas_server
+ - file_system
+ - snapshot
+ - nfs_export
+ - smb_share
+ - user_quota
+ - tree_quota
+ - disk_group
+ - nfs_server
+ - cifs_server
+ - ethernet_port
+ - file_interface
+ - replication_session
+
+- name: Get information of Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+
+- name: Get list of hosts on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - host
+
+- name: Get list of FC initiators on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - fc_initiator
+
+- name: Get list of ISCSI initiators on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - iscsi_initiator
+
+- name: Get list of consistency groups on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - cg
+
+- name: Get list of storage pools on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - storage_pool
+
+- name: Get list of volumes on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - vol
+
+- name: Get list of snapshot schedules on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - snapshot_schedule
+
+- name: Get list of NAS Servers on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - nas_server
+
+- name: Get list of File Systems on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - file_system
+
+- name: Get list of Snapshots on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - snapshot
+
+- name: Get list of NFS exports on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - nfs_export
+
+- name: Get list of SMB shares on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - smb_share
+
+- name: Get list of user quotas on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - user_quota
+
+- name: Get list of quota trees on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - tree_quota
+
+- name: Get list of disk groups on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - disk_group
+
+- name: Get list of NFS Servers on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - nfs_server
+
+- name: Get list of CIFS Servers on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - cifs_server
+
+- name: Get list of ethernet ports on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - ethernet_port
+
+- name: Get list of file interfaces on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - file_interface
+
+- name: Get list of replication sessions on Unity array
+ dellemc.unity.info:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ gather_subset:
+ - replication_session
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/interface.py b/ansible_collections/dellemc/unity/plugins/modules/interface.py
index 2523f940e..70be8021a 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/interface.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/interface.py
@@ -79,55 +79,55 @@ notes:
EXAMPLES = r'''
- - name: Add Interface as Backup to NAS Server
- dellemc.unity.interface:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
- role: "BACKUP"
- interface_ip: "xx.xx.xx.xx"
- netmask: "xx.xx.xx.xx"
- gateway: "xx.xx.xx.xx"
- vlan_id: 324
- state: "present"
-
- - name: Add Interface as Production to NAS Server
- dellemc.unity.interface:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
- role: "PRODUCTION"
- interface_ip: "xx.xx.xx.xx"
- netmask: "xx.xx.xx.xx"
- gateway: "xx.xx.xx.xx"
- vlan_id: 324
- state: "present"
-
- - name: Get interface details
- dellemc.unity.interface:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- interface_ip: "xx.xx.xx.xx"
- state: "present"
-
- - name: Delete Interface
- dellemc.unity.interface:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- interface_ip: "xx.xx.xx.xx"
- state: "absent"
+- name: Add Interface as Backup to NAS Server
+ dellemc.unity.interface:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
+ role: "BACKUP"
+ interface_ip: "xx.xx.xx.xx"
+ netmask: "xx.xx.xx.xx"
+ gateway: "xx.xx.xx.xx"
+ vlan_id: 324
+ state: "present"
+
+- name: Add Interface as Production to NAS Server
+ dellemc.unity.interface:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
+ role: "PRODUCTION"
+ interface_ip: "xx.xx.xx.xx"
+ netmask: "xx.xx.xx.xx"
+ gateway: "xx.xx.xx.xx"
+ vlan_id: 324
+ state: "present"
+
+- name: Get interface details
+ dellemc.unity.interface:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ interface_ip: "xx.xx.xx.xx"
+ state: "present"
+
+- name: Delete Interface
+ dellemc.unity.interface:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ interface_ip: "xx.xx.xx.xx"
+ state: "absent"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/nasserver.py b/ansible_collections/dellemc/unity/plugins/modules/nasserver.py
index 925cc932e..446611f4e 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/nasserver.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/nasserver.py
@@ -208,138 +208,138 @@ notes:
EXAMPLES = r'''
- - name: Get Details of NAS Server
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "{{nas_server_name}}"
- state: "present"
-
- - name: Modify Details of NAS Server
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "{{nas_server_name}}"
- nas_server_new_name: "updated_sample_nas_server"
- is_replication_destination: false
- is_backup_only: false
- is_multiprotocol_enabled: true
- allow_unmapped_user: true
- default_unix_user: "default_unix_sample_user"
- default_windows_user: "default_windows_sample_user"
- enable_windows_to_unix_username_mapping: true
- current_unix_directory_service: "LDAP"
- is_packet_reflect_enabled: true
- state: "present"
-
- - name: Enable replication for NAS Server on Local System
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_id: "nas_10"
- replication_reuse_resource: false
- replication_params:
- replication_name: "test_replication"
- destination_nas_server_name: "destination_nas"
- replication_mode: "asynchronous"
- rpo: 60
- replication_type: "local"
- destination_pool_name: "Pool_Ansible_Neo_DND"
- destination_sp: "SPA"
- is_backup: true
- replication_state: "enable"
- state: "present"
-
- - name: Enable replication for NAS Server on Remote System
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- replication_reuse_resource: false
- replication_params:
- replication_name: "test_replication"
- destination_nas_server_name: "destination_nas"
- replication_mode: "asynchronous"
- rpo: 60
- replication_type: "remote"
- remote_system:
- remote_system_host: '10.10.10.10'
- remote_system_verifycert: false
- remote_system_username: 'test1'
- remote_system_password: 'test1!'
- destination_pool_name: "fastVP_pool"
- destination_sp: "SPA"
- is_backup: true
- replication_state: "enable"
- state: "present"
-
- - name: Enable replication for NAS Server on Remote System in existing NAS Server
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- replication_reuse_resource: true
- replication_params:
- destination_nas_server_name: "destination_nas"
- replication_mode: "asynchronous"
- rpo: 60
- replication_type: "remote"
- replication_name: "test_replication"
- remote_system:
- remote_system_host: '10.10.10.10'
- remote_system_verifycert: false
- remote_system_username: 'test1'
- remote_system_password: 'test1!'
- destination_pool_name: "fastVP_pool"
- replication_state: "enable"
- state: "present"
-
- - name: Modify replication on the nasserver
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- replication_params:
- replication_name: "test_repl"
- new_replication_name: "test_repl_updated"
- replication_mode: "asynchronous"
- rpo: 50
- replication_state: "enable"
- state: "present"
-
- - name: Disable replication on the nasserver
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- replication_state: "disable"
- state: "present"
-
- - name: Disable replication by specifying replication_name on the nasserver
- dellemc.unity.nasserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- replication_params:
- replication_name: "test_replication"
- replication_state: "disable"
- state: "present"
+- name: Get Details of NAS Server
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "{{nas_server_name}}"
+ state: "present"
+
+- name: Modify Details of NAS Server
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "{{nas_server_name}}"
+ nas_server_new_name: "updated_sample_nas_server"
+ is_replication_destination: false
+ is_backup_only: false
+ is_multiprotocol_enabled: true
+ allow_unmapped_user: true
+ default_unix_user: "default_unix_sample_user"
+ default_windows_user: "default_windows_sample_user"
+ enable_windows_to_unix_username_mapping: true
+ current_unix_directory_service: "LDAP"
+ is_packet_reflect_enabled: true
+ state: "present"
+
+- name: Enable replication for NAS Server on Local System
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_id: "nas_10"
+ replication_reuse_resource: false
+ replication_params:
+ replication_name: "test_replication"
+ destination_nas_server_name: "destination_nas"
+ replication_mode: "asynchronous"
+ rpo: 60
+ replication_type: "local"
+ destination_pool_name: "Pool_Ansible_Neo_DND"
+ destination_sp: "SPA"
+ is_backup: true
+ replication_state: "enable"
+ state: "present"
+
+- name: Enable replication for NAS Server on Remote System
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ replication_reuse_resource: false
+ replication_params:
+ replication_name: "test_replication"
+ destination_nas_server_name: "destination_nas"
+ replication_mode: "asynchronous"
+ rpo: 60
+ replication_type: "remote"
+ remote_system:
+ remote_system_host: '10.10.10.10'
+ remote_system_verifycert: false
+ remote_system_username: 'test1'
+ remote_system_password: 'test1!'
+ destination_pool_name: "fastVP_pool"
+ destination_sp: "SPA"
+ is_backup: true
+ replication_state: "enable"
+ state: "present"
+
+- name: Enable replication for NAS Server on Remote System in existing NAS Server
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ replication_reuse_resource: true
+ replication_params:
+ destination_nas_server_name: "destination_nas"
+ replication_mode: "asynchronous"
+ rpo: 60
+ replication_type: "remote"
+ replication_name: "test_replication"
+ remote_system:
+ remote_system_host: '10.10.10.10'
+ remote_system_verifycert: false
+ remote_system_username: 'test1'
+ remote_system_password: 'test1!'
+ destination_pool_name: "fastVP_pool"
+ replication_state: "enable"
+ state: "present"
+
+- name: Modify replication on the nasserver
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ replication_params:
+ replication_name: "test_repl"
+ new_replication_name: "test_repl_updated"
+ replication_mode: "asynchronous"
+ rpo: 50
+ replication_state: "enable"
+ state: "present"
+
+- name: Disable replication on the nasserver
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ replication_state: "disable"
+ state: "present"
+
+- name: Disable replication by specifying replication_name on the nasserver
+ dellemc.unity.nasserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ replication_params:
+ replication_name: "test_replication"
+ replication_state: "disable"
+ state: "present"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/nfs.py b/ansible_collections/dellemc/unity/plugins/modules/nfs.py
index 473e40b2a..d0426f9cf 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/nfs.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/nfs.py
@@ -395,15 +395,15 @@ EXAMPLES = r"""
filesystem_id: "fs_377"
adv_host_mgmt_enabled: false
no_access_hosts:
- - domain: "google.com"
+ - domain: "google.com"
read_only_hosts:
- - netgroup: "netgroup_admin"
+ - netgroup: "netgroup_admin"
read_only_root_hosts:
- - host_name: "host5"
+ - host_name: "host5"
read_write_hosts:
- - subnet: "168.159.57.4/255.255.255.0"
+ - subnet: "168.159.57.4/255.255.255.0"
read_write_root_hosts:
- - ip_address: "10.255.2.4"
+ - ip_address: "10.255.2.4"
host_state: "present-in-export"
state: "present"
@@ -417,15 +417,15 @@ EXAMPLES = r"""
filesystem_id: "fs_377"
adv_host_mgmt_enabled: false
no_access_hosts:
- - domain: "google.com"
+ - domain: "google.com"
read_only_hosts:
- - netgroup: "netgroup_admin"
+ - netgroup: "netgroup_admin"
read_only_root_hosts:
- - host_name: "host5"
+ - host_name: "host5"
read_write_hosts:
- - subnet: "168.159.57.4/255.255.255.0"
+ - subnet: "168.159.57.4/255.255.255.0"
read_write_root_hosts:
- - ip_address: "10.255.2.4"
+ - ip_address: "10.255.2.4"
host_state: "absent-in-export"
state: "present"
diff --git a/ansible_collections/dellemc/unity/plugins/modules/nfsserver.py b/ansible_collections/dellemc/unity/plugins/modules/nfsserver.py
index 30d2c787f..90aba930e 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/nfsserver.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/nfsserver.py
@@ -84,56 +84,56 @@ notes:
EXAMPLES = r'''
- - name: Create NFS server with kdctype as Windows
- dellemc.unity.nfsserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- host_name: "dummy_nas23"
- is_secure_enabled: true
- kerberos_domain_controller_type: "WINDOWS"
- kerberos_domain_controller_username: "administrator"
- kerberos_domain_controller_password: "Password123!"
- is_extended_credentials_enabled: true
- nfs_v4_enabled: true
- state: "present"
-
- - name: Create NFS server with kdctype as Unix
- dellemc.unity.nfsserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- host_name: "dummy_nas23"
- is_secure_enabled: true
- kerberos_domain_controller_type: "UNIX"
- is_extended_credentials_enabled: true
- nfs_v4_enabled: true
- state: "present"
-
- - name: Get NFS server details
- dellemc.unity.nfsserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- state: "present"
-
- - name: Delete NFS server
- dellemc.unity.nfsserver:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- nas_server_name: "dummy_nas"
- kerberos_domain_controller_username: "administrator"
- kerberos_domain_controller_password: "Password123!"
- unjoin_server_account: false
- state: "absent"
+- name: Create NFS server with kdctype as Windows
+ dellemc.unity.nfsserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ host_name: "dummy_nas23"
+ is_secure_enabled: true
+ kerberos_domain_controller_type: "WINDOWS"
+ kerberos_domain_controller_username: "administrator"
+ kerberos_domain_controller_password: "Password123!"
+ is_extended_credentials_enabled: true
+ nfs_v4_enabled: true
+ state: "present"
+
+- name: Create NFS server with kdctype as Unix
+ dellemc.unity.nfsserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ host_name: "dummy_nas23"
+ is_secure_enabled: true
+ kerberos_domain_controller_type: "UNIX"
+ is_extended_credentials_enabled: true
+ nfs_v4_enabled: true
+ state: "present"
+
+- name: Get NFS server details
+ dellemc.unity.nfsserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ state: "present"
+
+- name: Delete NFS server
+ dellemc.unity.nfsserver:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ nas_server_name: "dummy_nas"
+ kerberos_domain_controller_username: "administrator"
+ kerberos_domain_controller_password: "Password123!"
+ unjoin_server_account: false
+ state: "absent"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/snapshot.py b/ansible_collections/dellemc/unity/plugins/modules/snapshot.py
index 5660e3c5c..efdd6e292 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/snapshot.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/snapshot.py
@@ -112,79 +112,79 @@ notes:
'''
EXAMPLES = r'''
- - name: Create a Snapshot for a CG
- dellemc.unity.snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- port: "{{port}}"
- cg_name: "{{cg_name}}"
- snapshot_name: "{{cg_snapshot_name}}"
- description: "{{description}}"
- auto_delete: false
- state: "present"
-
- - name: Create a Snapshot for a volume with Host attached
- dellemc.unity.snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- port: "{{port}}"
- vol_name: "{{vol_name}}"
- snapshot_name: "{{vol_snapshot_name}}"
- description: "{{description}}"
- expiry_time: "04/15/2025 16:30"
- host_name: "{{host_name}}"
- host_state: "mapped"
- state: "present"
-
- - name: Unmap a host for a Snapshot
- dellemc.unity.snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- port: "{{port}}"
- snapshot_name: "{{vol_snapshot_name}}"
- host_name: "{{host_name}}"
- host_state: "unmapped"
- state: "present"
-
- - name: Map snapshot to a host
- dellemc.unity.snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- port: "{{port}}"
- snapshot_name: "{{vol_snapshot_name}}"
- host_name: "{{host_name}}"
- host_state: "mapped"
- state: "present"
-
- - name: Update attributes of a Snapshot for a volume
- dellemc.unity.snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "{{vol_snapshot_name}}"
- new_snapshot_name: "{{new_snapshot_name}}"
- description: "{{new_description}}"
- host_name: "{{host_name}}"
- host_state: "unmapped"
- state: "present"
-
- - name: Delete Snapshot of CG
- dellemc.unity.snapshot:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- snapshot_name: "{{cg_snapshot_name}}"
- state: "absent"
+- name: Create a Snapshot for a CG
+ dellemc.unity.snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ port: "{{port}}"
+ cg_name: "{{cg_name}}"
+ snapshot_name: "{{cg_snapshot_name}}"
+ description: "{{description}}"
+ auto_delete: false
+ state: "present"
+
+- name: Create a Snapshot for a volume with Host attached
+ dellemc.unity.snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ port: "{{port}}"
+ vol_name: "{{vol_name}}"
+ snapshot_name: "{{vol_snapshot_name}}"
+ description: "{{description}}"
+ expiry_time: "04/15/2025 16:30"
+ host_name: "{{host_name}}"
+ host_state: "mapped"
+ state: "present"
+
+- name: Unmap a host for a Snapshot
+ dellemc.unity.snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ port: "{{port}}"
+ snapshot_name: "{{vol_snapshot_name}}"
+ host_name: "{{host_name}}"
+ host_state: "unmapped"
+ state: "present"
+
+- name: Map snapshot to a host
+ dellemc.unity.snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ port: "{{port}}"
+ snapshot_name: "{{vol_snapshot_name}}"
+ host_name: "{{host_name}}"
+ host_state: "mapped"
+ state: "present"
+
+- name: Update attributes of a Snapshot for a volume
+ dellemc.unity.snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "{{vol_snapshot_name}}"
+ new_snapshot_name: "{{new_snapshot_name}}"
+ description: "{{new_description}}"
+ host_name: "{{host_name}}"
+ host_state: "unmapped"
+ state: "present"
+
+- name: Delete Snapshot of CG
+ dellemc.unity.snapshot:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ snapshot_name: "{{cg_snapshot_name}}"
+ state: "absent"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/snapshotschedule.py b/ansible_collections/dellemc/unity/plugins/modules/snapshotschedule.py
index 1d6e6ec6c..0690239ea 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/snapshotschedule.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/snapshotschedule.py
@@ -142,8 +142,8 @@ EXAMPLES = r"""
name: "Ansible_Every_Day_Testing"
type: "every_day"
hours_of_day:
- - 8
- - 14
+ - 8
+ - 14
auto_delete: true
state: "{{state_present}}"
@@ -169,8 +169,8 @@ EXAMPLES = r"""
name: "Ansible_Every_Week_Testing"
type: "every_week"
days_of_week:
- - MONDAY
- - FRIDAY
+ - MONDAY
+ - FRIDAY
hour: 12
minute: 30
desired_retention: 200
diff --git a/ansible_collections/dellemc/unity/plugins/modules/storagepool.py b/ansible_collections/dellemc/unity/plugins/modules/storagepool.py
index 6438e9c6a..b7b8bfd69 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/storagepool.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/storagepool.py
@@ -212,22 +212,21 @@ EXAMPLES = r'''
pool_name: "Test"
pool_description: "test pool"
raid_groups:
- disk_group_id : "dg_16"
- disk_num : 2
- raid_type : "RAID10"
- stripe_width : "BEST_FIT"
- alert_threshold : 50
- is_harvest_enabled : true
- pool_harvest_high_threshold : 60
- pool_harvest_low_threshold : 40
- is_snap_harvest_enabled : true
- snap_harvest_high_threshold : 70
- snap_harvest_low_threshold : 50
+ disk_group_id: "dg_16"
+ disk_num: 2
+ raid_type: "RAID10"
+ stripe_width: "BEST_FIT"
+ alert_threshold: 50
+ is_harvest_enabled: true
+ pool_harvest_high_threshold: 60
+ pool_harvest_low_threshold: 40
+ is_snap_harvest_enabled: true
+ snap_harvest_high_threshold: 70
+ snap_harvest_low_threshold: 50
fast_vp: "enabled"
fast_cache: "enabled"
- pool_type : "DYNAMIC"
+ pool_type: "DYNAMIC"
state: "present"
-
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/tree_quota.py b/ansible_collections/dellemc/unity/plugins/modules/tree_quota.py
index b066a01fa..dd0a76374 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/tree_quota.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/tree_quota.py
@@ -101,97 +101,97 @@ notes:
'''
EXAMPLES = r'''
- - name: Get quota tree details by quota tree id
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- tree_quota_id: "treequota_171798700679_10"
- state: "present"
-
- - name: Get quota tree details by quota tree path
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_name: "fs_2171"
- nas_server_id: "nas_21"
- path: "/test"
- state: "present"
-
- - name: Create quota tree for a filesystem with filesystem id
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- hard_limit: 6
- cap_unit: "TB"
- soft_limit: 5
- path: "/test_new"
- state: "present"
-
- - name: Create quota tree for a filesystem with filesystem name
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_name: "Test_filesystem"
- nas_server_name: "lglad068"
- hard_limit: 6
- cap_unit: "TB"
- soft_limit: 5
- path: "/test_new"
- state: "present"
-
- - name: Modify quota tree limit usage by quota tree path
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- path: "/test_new"
- hard_limit: 10
- cap_unit: "TB"
- soft_limit: 8
- state: "present"
-
- - name: Modify quota tree by quota tree id
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- tree_quota_id: "treequota_171798700679_10"
- hard_limit: 12
- cap_unit: "TB"
- soft_limit: 10
- state: "present"
-
- - name: Delete quota tree by quota tree id
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- tree_quota_id: "treequota_171798700679_10"
- state: "absent"
-
- - name: Delete quota tree by path
- dellemc.unity.tree_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- path: "/test_new"
- state: "absent"
+- name: Get quota tree details by quota tree id
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ tree_quota_id: "treequota_171798700679_10"
+ state: "present"
+
+- name: Get quota tree details by quota tree path
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_name: "fs_2171"
+ nas_server_id: "nas_21"
+ path: "/test"
+ state: "present"
+
+- name: Create quota tree for a filesystem with filesystem id
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ hard_limit: 6
+ cap_unit: "TB"
+ soft_limit: 5
+ path: "/test_new"
+ state: "present"
+
+- name: Create quota tree for a filesystem with filesystem name
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_name: "Test_filesystem"
+ nas_server_name: "lglad068"
+ hard_limit: 6
+ cap_unit: "TB"
+ soft_limit: 5
+ path: "/test_new"
+ state: "present"
+
+- name: Modify quota tree limit usage by quota tree path
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ path: "/test_new"
+ hard_limit: 10
+ cap_unit: "TB"
+ soft_limit: 8
+ state: "present"
+
+- name: Modify quota tree by quota tree id
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ tree_quota_id: "treequota_171798700679_10"
+ hard_limit: 12
+ cap_unit: "TB"
+ soft_limit: 10
+ state: "present"
+
+- name: Delete quota tree by quota tree id
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ tree_quota_id: "treequota_171798700679_10"
+ state: "absent"
+
+- name: Delete quota tree by path
+ dellemc.unity.tree_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ path: "/test_new"
+ state: "absent"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/user_quota.py b/ansible_collections/dellemc/unity/plugins/modules/user_quota.py
index 06413aa53..0a09ff44d 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/user_quota.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/user_quota.py
@@ -123,170 +123,170 @@ notes:
'''
EXAMPLES = r'''
- - name: Get user quota details by user quota id
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- user_quota_id: "userquota_171798700679_0_123"
- state: "present"
-
- - name: Get user quota details by user quota uid/user name
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_name: "fs_2171"
- nas_server_id: "nas_21"
- user_name: "test"
- state: "present"
-
- - name: Create user quota for a filesystem with filesystem id
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- hard_limit: 6
- cap_unit: "TB"
- soft_limit: 5
- uid: "111"
- state: "present"
-
- - name: Create user quota for a filesystem with filesystem name
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_name: "Test_filesystem"
- nas_server_name: "lglad068"
- hard_limit: 6
- cap_unit: "TB"
- soft_limit: 5
- uid: "111"
- state: "present"
-
- - name: Modify user quota limit usage by user quota id
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- user_quota_id: "userquota_171798700679_0_123"
- hard_limit: 10
- cap_unit: "TB"
- soft_limit: 8
- state: "present"
-
- - name: Modify user quota by filesystem id and user quota uid/user_name
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- user_type: "Windows"
- win_domain: "prod"
- user_name: "sample"
- hard_limit: 12
- cap_unit: "TB"
- soft_limit: 10
- state: "present"
-
- - name: Delete user quota
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- win_domain: "prod"
- user_name: "sample"
- state: "absent"
-
- - name: Create user quota of a quota tree
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- tree_quota_id: "treequota_171798700679_4"
- user_type: "Windows"
- win_domain: "prod"
- user_name: "sample"
- soft_limit: 9
- cap_unit: "TB"
- state: "present"
-
- - name: Create user quota of a quota tree by quota tree path
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- path: "/sample"
- user_type: "Unix"
- user_name: "test"
- hard_limit: 2
- cap_unit: "TB"
- state: "present"
-
- - name: Modify user quota of a quota tree
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- tree_quota_id: "treequota_171798700679_4"
- user_type: "Windows"
- win_domain: "prod"
- user_name: "sample"
- soft_limit: 10
- cap_unit: "TB"
- state: "present"
-
- - name: Modify user quota of a quota tree by quota tree path
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- path: "/sample"
- user_type: "Windows"
- win_domain: "prod"
- user_name: "sample"
- hard_limit: 12
- cap_unit: "TB"
- state: "present"
-
- - name: Delete user quota of a quota tree by quota tree path
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- filesystem_id: "fs_2171"
- path: "/sample"
- win_domain: "prod"
- user_name: "sample"
- state: "absent"
-
- - name: Delete user quota of a quota tree by quota tree id
- dellemc.unity.user_quota:
- unispherehost: "{{unispherehost}}"
- username: "{{username}}"
- password: "{{password}}"
- validate_certs: "{{validate_certs}}"
- tree_quota_id: "treequota_171798700679_4"
- win_domain: "prod"
- user_name: "sample"
- state: "absent"
+- name: Get user quota details by user quota id
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ user_quota_id: "userquota_171798700679_0_123"
+ state: "present"
+
+- name: Get user quota details by user quota uid/user name
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_name: "fs_2171"
+ nas_server_id: "nas_21"
+ user_name: "test"
+ state: "present"
+
+- name: Create user quota for a filesystem with filesystem id
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ hard_limit: 6
+ cap_unit: "TB"
+ soft_limit: 5
+ uid: "111"
+ state: "present"
+
+- name: Create user quota for a filesystem with filesystem name
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_name: "Test_filesystem"
+ nas_server_name: "lglad068"
+ hard_limit: 6
+ cap_unit: "TB"
+ soft_limit: 5
+ uid: "111"
+ state: "present"
+
+- name: Modify user quota limit usage by user quota id
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ user_quota_id: "userquota_171798700679_0_123"
+ hard_limit: 10
+ cap_unit: "TB"
+ soft_limit: 8
+ state: "present"
+
+- name: Modify user quota by filesystem id and user quota uid/user_name
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ user_type: "Windows"
+ win_domain: "prod"
+ user_name: "sample"
+ hard_limit: 12
+ cap_unit: "TB"
+ soft_limit: 10
+ state: "present"
+
+- name: Delete user quota
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ win_domain: "prod"
+ user_name: "sample"
+ state: "absent"
+
+- name: Create user quota of a quota tree
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ tree_quota_id: "treequota_171798700679_4"
+ user_type: "Windows"
+ win_domain: "prod"
+ user_name: "sample"
+ soft_limit: 9
+ cap_unit: "TB"
+ state: "present"
+
+- name: Create user quota of a quota tree by quota tree path
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ path: "/sample"
+ user_type: "Unix"
+ user_name: "test"
+ hard_limit: 2
+ cap_unit: "TB"
+ state: "present"
+
+- name: Modify user quota of a quota tree
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ tree_quota_id: "treequota_171798700679_4"
+ user_type: "Windows"
+ win_domain: "prod"
+ user_name: "sample"
+ soft_limit: 10
+ cap_unit: "TB"
+ state: "present"
+
+- name: Modify user quota of a quota tree by quota tree path
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ path: "/sample"
+ user_type: "Windows"
+ win_domain: "prod"
+ user_name: "sample"
+ hard_limit: 12
+ cap_unit: "TB"
+ state: "present"
+
+- name: Delete user quota of a quota tree by quota tree path
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ filesystem_id: "fs_2171"
+ path: "/sample"
+ win_domain: "prod"
+ user_name: "sample"
+ state: "absent"
+
+- name: Delete user quota of a quota tree by quota tree id
+ dellemc.unity.user_quota:
+ unispherehost: "{{unispherehost}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ validate_certs: "{{validate_certs}}"
+ tree_quota_id: "treequota_171798700679_4"
+ win_domain: "prod"
+ user_name: "sample"
+ state: "absent"
'''
RETURN = r'''
diff --git a/ansible_collections/dellemc/unity/plugins/modules/volume.py b/ansible_collections/dellemc/unity/plugins/modules/volume.py
index 81790ea24..4b23267ac 100644
--- a/ansible_collections/dellemc/unity/plugins/modules/volume.py
+++ b/ansible_collections/dellemc/unity/plugins/modules/volume.py
@@ -224,10 +224,10 @@ EXAMPLES = r"""
validate_certs: "{{validate_certs}}"
vol_id: "{{vol_id}}"
hosts:
- - host_name: "10.226.198.248"
- hlu: 1
- - host_id: "Host_929"
- hlu: 2
+ - host_name: "10.226.198.248"
+ hlu: 1
+ - host_id: "Host_929"
+ hlu: 2
mapping_state: "mapped"
state: "present"