Hi,

I've been trying to solve this but I truly still have lots to learn...
Could somebody help?

Given that a VM "creation_time" snapshot property has this format:
"2024-05-26T10:01:21.219280+00:00".

How could I build a filter for the
"community.vmware.vmware_all_snapshots_info" module that would give me VMs
whose snapshots were created 2 weeks ago or older?

     - name: Collect snapshots older than 2 weeks
       community.vmware.vmware_all_snapshots_info:
           datacenter: "{{ datacenter_name }}"
           validate_certs: false
           filters:
               creation_time: "<filter>"
               match_type: includes
       register: old_snapshots

Thanks...

Alex

-- 
*The contents of this message and any attachment(s) are confidential, 
proprietary to the City of Edmonton, and are intended only for the 
addressed recipient. If you have received this in error, please disregard 
the contents, inform the sender of the misdirection, and remove it from 
your system. The copying, dissemination, or distribution of this message, 
if misdirected, is strictly prohibited.*

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADp8UUS10CbPWP45TRpfXB%2BYRWev5KaSRFjchAi7KQO7Dt%2BzHQ%40mail.gmail.com.

Reply via email to