Skip to content

Commit

Permalink
Switched module name to fqcn
Browse files Browse the repository at this point in the history
Fixes execution on AWX/Tower
  • Loading branch information
modzilla99 committed Jan 13, 2022
1 parent 1711f1e commit 3ae0587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions roles/posthooks/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down
6 changes: 3 additions & 3 deletions roles/vmware_snapshot/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down

0 comments on commit 3ae0587

Please sign in to comment.