create vmware_check_snapshot.yml

This commit is contained in:
2024-02-09 08:33:08 +01:00
parent cf786110b5
commit 32e38e3314

15
vmware_check_snapshot.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- name: Get Snapshot infos.
hosts: all
tasks:
- name: Gather snapshot information about the virtual machine in the given vCenter
community.vmware.vmware_guest_snapshot_info:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: "{{ datacenter_name }}"
uuid: "{{ vm_uuid }}"
delegate_to: localhost
register: snapshot_info