VMware module to change CD rom from iso to client

So we have a workiing deploment for our VM’s using AAP. What I am trying to do is as the last step after everything is done, is change the cd from the bootable iso file we use to kickstart everything, back to client device. I cannot figure out how…

What I have attempted to do (since I really don’t know scripting) is edit one of the existing yml files which turns the VM on after all the infoblox and firewall objects are created…

Is there even a way using Ansible to just wait 30 min after the VM is powered on for it to do the full deploy, then set the CD-ROM back to client device?

This is pretty much what wait_for and wait_for_connection are designed to handle.

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/wait_for_connection_module.html
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/wait_for_module.html

If you can key off a condition that indicates the provisioning has complete (i.e. we can SSH in, or validate from an API, or check a log entry), then you could continue through to switch the connected device.