Update vmware_check_snapshot.yml

This commit is contained in:
2024-02-09 09:08:05 +01:00
parent 32e38e3314
commit 75e3c10bbb

View File

@@ -3,13 +3,12 @@
hosts: all hosts: all
tasks: tasks:
- name: Gather snapshot information about the virtual machine in the given vCenter
- name: Gather snapshot information about the virtual machine in the given vCenter community.vmware.vmware_guest_snapshot_info:
community.vmware.vmware_guest_snapshot_info: hostname: "{{ lookup('env', 'VMWARE_HOST') }}"
hostname: "{{ vcenter_hostname }}" username: "{{ lookup('env', 'VMWARE_USER') }}"
username: "{{ vcenter_username }}" password: "{{ lookup('env', 'VMWARE_PASSWORD') }}"
password: "{{ vcenter_password }}" datacenter: "{{ esxi_host }}"
datacenter: "{{ datacenter_name }}" uuid: "{{ vm_uuid }}"
uuid: "{{ vm_uuid }}" delegate_to: localhost
delegate_to: localhost register: snapshot_info
register: snapshot_info