ansible-role-interfaces icon indicating copy to clipboard operation
ansible-role-interfaces copied to clipboard

Add priority to interfaces so that file names in interfaces.d can be prioritized

Open gbeine opened this issue 3 years ago • 0 comments

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.

gbeine avatar Aug 11 '21 11:08 gbeine