Hi
I have found one strange behaviour for ansible setup module on
Linux/eth/ipv4 interfaces
In case the interface have more then 1 IPv4, only one is returned. On IPv6
there is a array, on IPv4 only the hash.
Is this OK?
I'm trying to setup keep alive cluster, but is the keep alive is active,
only the floating IP is returned ;(
I'm using devel tree of ansible.
If this is a bug I could fix it for Linux based class.
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UNKNOWN qlen 1000
link/ether 52:54:00:c0:ff:f2 brd ff:ff:ff:ff:ff:ff
inet 91.212.YYY.XXX/24 brd 91.212.112.255 scope global eth1
inet 91.212.YYY.ZZZ/32 scope global eth1
lb01.DDDD.SS | success >> {
"ansible_facts": {
"ansible_eth1": {
"active": true,
"device": "eth1",
"ipv4": {
"address": "91.212.YYY.ZZZ",
"netmask": "255.255.255.255",
"network": "91.212.YYYY.ZZZ"
},
"ipv6": [
{
"address": "2001:67c:YYYY::XXXX",
"prefix": "64",
"scope": "global"
},
{
"address": "fe80::5054:ff:fec0:fff2",
"prefix": "64",
"scope": "link"
}
],
"macaddress": "52:54:00:c0:ff:f2",
"module": "virtio_net",
"mtu": 1500,
"type": "ether"
}
},
Peter