ansible_ssh_host points to wrong ip

Hi,

I have created a vm with 3 network interfaces using a heat template in an openstack cloud environment.
One of the interfaces are reachable from the outside the cloud and the other two interfaces are private networks inside the cloud.