Ansible deploy new VM doesn't wait for ip address
I have a small VM template which already includes the openvm tools. When I use ansible to deploy a new VM from this template, it should wait for the IP to become available.
vmware_guest:
wait_for_ip_address: true
wait_for_ip_address_timeout: 6000
What I notice however is that as soon as the vmware tools 'wake-up' and the virtual machine details pane in vCenter shows a dns name, the ansible execution fails "VM created but VMware Tools did not report an IP address within 6000s.".
Just about 15sec after the dns name showing up in the gui, the ip address is displayed. So it looks like it is waiting for the vmtools to become available and not the IP address through the tools. Setting the timeout to 6000 proofs this, since it takes less than a minute for the whole process.
Anyone experience the same and tips to solve this? Build an extra wait?
Posted Oct 6, 2025, 7:17 PM UTC