From b643c52cf29ce5bbab738b43290af3556efa1ca9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 18:18:41 +0200 Subject: Merging upstream version 10.0.0+dfsg. Signed-off-by: Daniel Baumann --- .../dellemc/unity/plugins/modules/snapshot.py | 146 ++++++++++----------- 1 file changed, 73 insertions(+), 73 deletions(-) (limited to 'ansible_collections/dellemc/unity/plugins/modules/snapshot.py') 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''' -- cgit v1.2.3