debops / ansible-ifupdown

Manage network interface configuration in /etc/network/interfaces
GNU General Public License v3.0
25 stars 14 forks source link

Single argument to disable autoconfiguration #71

Open murinicanor opened 7 years ago

murinicanor commented 7 years ago

hi,

i'm new to ansible, so maybe i'm using it wrong, but it would be great if there were one variable that states, that debops.ifupdown should not do any default configuration. at the moment i can disable the default interface layout by setting ifupdown__interface_layout to manual, but i also have to set ifupdown__ethernet_interfaces to {} to disable the creation of interface files for any of my physical adapters. it would be great if there was only one knob for turning off all autoconfiguration.

thanks for your work!

drybjed commented 7 years ago

This is done tin the template that combines all the information the role has gathered to create the list of interfaces. Since that time, my Ansible tricks improved a bit, and at some point I would like to update this role to have one "unified" interface list; at that point it will be easier to disable the default interface generation.

Unfortunately this is a bit involved process, and I'm focusing on other things at the moment, namely fixing all remaining PRs to prepare everything for the merge into one git repository. After that, I'm sure that debops.ifupdown will have its own facelift.