diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:18:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:18:41 +0000 |
commit | b643c52cf29ce5bbab738b43290af3556efa1ca9 (patch) | |
tree | 21d5c53d7a9b696627a255777cefdf6f78968824 /ansible_collections/dellemc/unity/plugins/modules/snapshot.py | |
parent | Releasing progress-linux version 9.5.1+dfsg-1~progress7.99u1. (diff) | |
download | ansible-b643c52cf29ce5bbab738b43290af3556efa1ca9.tar.xz ansible-b643c52cf29ce5bbab738b43290af3556efa1ca9.zip |
Merging upstream version 10.0.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/dellemc/unity/plugins/modules/snapshot.py')
-rw-r--r-- | ansible_collections/dellemc/unity/plugins/modules/snapshot.py | 146 |
1 files changed, 73 insertions, 73 deletions
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''' |