If you ever wonder why I’m been paid, this is it.
Goal: to find objects (in my case VMs) in gcp account which have specific labels but live for too long.
Ansible has some rudimentary support for dates and times, but gosh…
I got a simple task: compare string like this ’10 Apr 19 12:52 UTC’ with mtime for a given file to see if file is older than a given date.