I am transitioning my network interface provisioning to be based on actual hardware/NIC macaddresses rather than trying to use device names like ethN that seem to be inconsistent between different servers and are often different on each OS distribution
I ran into an issue where Ansible reported the macaddress of a bond member as the macadress of the bond itself, which is not what I need/want.
I am able to work around the issue by installing Facter and using something like:
hostvars[inventory_hostname]['facter_networking']['interfaces'][item].mac
which seems to always report the actual NIC macaddress....
But this means I need to install Facter before I configure my network, which is not ideal.
Is there a way to get this info/fact from Ansible without relying on Facter?
Even if I have to install my own facts.....