Closed pescobar closed 4 years ago
Personally I prefer this approach because it can reuse existing code without duplicating it and this seems easier to maintain in the future.
The only drawback I see is that ipoib interfaces are defined in var interfaces_ether_interfaces
which is not very intuitive. But IMO configuring ipoib interfaces is not very common (will anyone besides me will use it? ;) and I prefer to just document this in the README instead of adding more complexity in the role (which already has enough hehehe)
Ok, let's go with this one. Please add an example to the README.
This is an alternative approach to https://github.com/michaelrigart/ansible-role-interfaces/pull/77
With this change ipoib interfaces could be defined like this and it should work without duplicating any code (important detail is to use
type: ipoib
)