Closed pescobar closed 2 years ago
Hi Pablo. Given that interfaces_ether_interfaces
explicitly states Ethernet, it would probably be less confusing to add interfaces_infiniband_interfaces
than extend interfaces_ether_interfaces
to support IB. I think it makes sense to add support.
Hasn't this been implemented with:
interfaces_ether_interfaces:
- device: ib0
bootproto: static
address: 10.41.0.10
netmask: 255.255.128.0
type: ipoib
you are right it is solved in this PR https://github.com/michaelrigart/ansible-role-interfaces/pull/78
I am closing this issue.
I have defined this variable to configure the ip for an infiniband interface:
but when running the playbook task
Check active Ethernet interface state
always reports a change for interfaceib0
with this message:Later in handler
Check active Ethernet interface state
I get an error:The problem seems to be in here because for a regular ethernet interface
fact["type"] = ether
but for an infiniband interfacefact["type"] = infiniband
Is it possible to add support to define
interfaces_infiniband_interfaces
? Or can I somehow define that the type for this interface isinfiniband
?I can work on a PR or do beta-testing if you are open to add this feature to the role.