Skip to content

Snapshot

Go to Automation

View in GitLab

Description

This playbook creates or deletes VMware snapshots for virtual machines. It sets the VM name, looks for the VM in the datacenter, and either takes a snapshot or deletes an existing snapshot based on the specified action. It also includes a condition to check if a snapshot is required.

Credentials

  • sys_ansible_vmware

Input

Variable Description
target Target VM FQDN
snapshot_action Action to perform (create/remove)
vm_snapshot Snapshot name
quiesce Quiesce option (default: true)
snapshot_required Boolean to check if snapshot is required

Output

None

Dependencies