Skip to content

Cleanup snapshot

Go to Automation

View in GitLab

Description

This automation script cleans up old snapshots in a VMware based on the snapshot name. It retrieves a list of snapshots older than a specified number of days and removes them in batches.

Credentials

  • sys_ansible_vmware

Input

Variable Description
snapshotname Name pattern of the snapshots to clean up
days Number of days to consider a snapshot old

Output

None

Dependencies