Hi John,

Thanks for your reply.

I'm thinking of running the deletion of snapshots once or twice every week.
Deleting them all every time would also delete the snapshot that are
created just before the script runs if someone is working on their VM.

I can still do it using powerCLI script. Although i would prefer if it can
be done via ansible.

Thanks!

Regards,
Rad

On Fri, Mar 1, 2019 at 1:14 AM John Foley <[email protected]> wrote:

> Just delete them all :)
>
> Having a slew of snapshots of bad business anyway.
>
> On Thursday, February 28, 2019 at 2:15:02 AM UTC-5, [email protected]
> wrote:
>>
>> 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
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7d064a3c-a2e8-42a3-a510-6225fdc99dab%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/7d064a3c-a2e8-42a3-a510-6225fdc99dab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPjPy-g_oTLTtjkDXQZH-eUXuWqs0mVLpjj16f%3DuZ1v7bWKs_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to