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 priority to interfaces so that file names in interfaces.d can be prioritized #113

Open gbeine opened 2 years ago

gbeine commented 2 years ago

Debian creates the interfaces following a ranking usually indicated by prepending numbers to the ifcfg-files. This will be enabled by this patch by adding a 'priority' field to interface definitions.

So something like

  bridge:
  - device: lxcbr0
    priority: 20
    type: bridge
...

will result in the filename 20-ifcfg-lxcbr0 instead of ifcfg-lxcbr0.