Hello Team,
Our Agenda is to manage Ubuntu Machines Centrally (16 and 18 versions).
*We use Ansible callback plugin to onboard hosts to foreman which we started using recently before it we used to do this by installing puppet agent on hosts. The Ubuntu machines do not have static ip addresses, we run ansible playbook only once to onboard hosts. The problem here since we do not have static ips configured and no dns entries, if the ip address of host changes, we are doing remote execution on different machines rather than on actual host, the ip addresses will not update in foreman because we gather facts only once when on boarding.
– if we run ansible playbook again after host ip changes, foreman will add if that ip does not exists, also host with old ip also be there in foreman but it is not reachable unless ip is configured in other host.
Please suggest on how to get out of this issue?
*We have multiple network interfaces(wifi,eth1,eth2) present on hosts and ip’s configured on each interface. if wifi ip address taken as primary interface in foreman, we disable wifi-interface for some reason, then we will not be able to do remote execution on host since remote execution is allowed for only primary interface. Is there any options like if remote execution fails on primary interface, automatically switching over to secondary interface or next available interface and allows remote execution?
Thanks