I deploy VMs with multiple interfaces. At the end of the processing, I retrieve the default_ip_address to run an additional script.
My problem is that the default_ip_address is not systematically on the first interface, which is the one that must be used for management.As a result, the script cannot be launched, because the other networks do not necessarily have the necessary access. In addition, it is necessary for me to have the right list of IPs, in order to constitute a host.yaml file for Ansible.
Is there a way to force the default ip address on a particular interface?