michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

Add support for managing loopback devices with Network Manager #163

Open Aethylred opened 2 weeks ago

Aethylred commented 2 weeks ago

This addresses Issue #162

Updates the ethernet_nmconnect.j2 template to handle loopback devices, and updates the ether checks to pass them.

It should work for the default lo loopback device, but might need more work to handle other loopback devices if configured.

Aethylred commented 2 weeks ago

I'm not entirely happy with the handler

elif [[ '{{ interface }}' == 'lo' ]]; then

This should really by interface type and not interface name, but I don't know how or if that variable is exposed in the handler playbook