diff --git a/roles/posthooks/tasks/main.yml b/roles/posthooks/tasks/main.yml index 312fc92..5dd858a 100644 --- a/roles/posthooks/tasks/main.yml +++ b/roles/posthooks/tasks/main.yml @@ -4,7 +4,7 @@ block: - name: Restoring VM to Snapshot taken delegate_to: localhost - vmware_guest_snapshot: + community.vmware.vmware_guest_snapshot: datacenter: "{{ vcenter_datacenter }}" hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" @@ -15,7 +15,7 @@ state: revert - name: Start restored VM delegate_to: localhost - vmware_guest: + community.vmware.vmware_guest: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" @@ -25,7 +25,7 @@ - name: Removing old Snapshot when: posthooks_autoremove delegate_to: localhost - vmware_guest_snapshot: + community.vmware.vmware_guest_snapshot: datacenter: "{{ vcenter_datacenter }}" hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" diff --git a/roles/vmware_snapshot/tasks/main.yml b/roles/vmware_snapshot/tasks/main.yml index 956b82b..adf6220 100644 --- a/roles/vmware_snapshot/tasks/main.yml +++ b/roles/vmware_snapshot/tasks/main.yml @@ -2,7 +2,7 @@ - name: Gather Facts of all VMs in variable machines. when: inventory_hostname in groups['local'] delegate_to: localhost - vmware_vm_info: + community.vmware.vmware_vm_info: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" @@ -20,7 +20,7 @@ - name: Remove old VM-Snapshots when: inventory_hostname not in groups['local'] delegate_to: localhost - vmware_guest_snapshot: + community.vmware.vmware_guest_snapshot: datacenter: "{{ vcenter_datacenter }}" hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" @@ -33,7 +33,7 @@ - name: Create new VM-Snapshots when: inventory_hostname not in groups['local'] delegate_to: localhost - vmware_guest_snapshot: + community.vmware.vmware_guest_snapshot: datacenter: "{{ vcenter_datacenter }}" hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}"