Ansible in VMware: searching for templates

So in both AWS and Azure, there are methods that can be used to either directly query an account for all available images that match a regex pattern, or download a list of all images then filter it to accomplish the same. y doing this I can auto install lastest versions of images (either marketplace or internally created) and not need to constantly update my Ansible vars with the correct current image.

I can’t, however, figure out how to do the same in VMware. Does anyone know a way to query/register a list of VMware templates so that I could potentially filter/select the appropriate one?

I should add that I do NOT want to constantly overwrite images, because that would block me from any kind of rapid rollback if an auto-built image cause issues. The idea is to simply delete the offending image and let the next build “just work” while we troubleshoot in the background … not scramble to build a new template/image and have people wait.