Question about collecting IP Address attached to a newly created machine
Hi All,
Long time listener, first time caller.
A colleague and I are using Ansible to create a VM in RHV using AAP. The problem we're running into is trying to get the IP back after creating the instance and attaching the NIC so that we can register that host into DNS (and not assign static IPs to stuff because it's 2024).
For the life of me, we can't find a module that simply returns outputs of the address of the machine/nic when it gets created. MAC address and NIC ID, yes! But nothing about what address it picked up, despite being present in RHV once the machine is created...
I apologize if this is a stupid problem (I really hope it is) but I'd really appreciate any assistance one could provide. Thank you in advance.
Posted Jul 24, 2024, 3:04 PM UTC