Hi,
I have two servers with different network interface names:
From Ansible facts:
Server A:
“ansible_em0”: {
“active”: true,
“device”: “em0”,
…
},
Server B:
“ansible_eth0”: {
“active”: true,
“device”: “eth0”,
…
},
Some of my templates depends on getting IP address of a network interface from Ansible facts.
Is there a easy way how to address it?
I can get it with a script or write a condition for a specific serve type, but it seems to me a little bit hacky :).
Thanks,
Filip