I’ve been looking at different ways to provision VM’s in VMWare. There are a lot of examples out there that make use of Ansible via an Ansible Tower catalog item. The provisioning works and the VM is created but what these articles don’t explain is how you then tie the provisioned VM to the service that gets created. Is there a way to pass the service ID to Ansible tower to use it there? How would you automate that part. If the service id could be passed across to tower then I can see how you would link the two via the API.
Also, how would you go about modifying the retirement entry point to run a playbook that retires the VM. There doesn’t seem to be any docs or guides that cover how you would do that.