Hi all,
May I ask how do you handle deleting old snapshots in vmware?
vmware_guest_snapshot module seems to be based on the name on the snapshot to manage. Im thinking of how to get the name of the snapshot based on the creation_time if it’s older than certain days from vmware_guest_snapshot_facts.
So this inquiry might go down to how do you compare timestamps from the output below?
{
“creation_time”: “2019-01-29T09:18:34.631273+00:00”,
“description”: “”,
“id”: 1,
“name”: “test”,
“state”: “poweredOn”
},
I wish there’s a feature in vmware_guest_snapshot module to indicate deletion of snapshots that are older than certain days not just by name.
Thanks a lot in advance!
Regards,
Rad