Open murinicanor opened 7 years ago
The debops.ifupdown
role is designed to be used as a dependency by other Ansible/DebOps roles. It means, that there might be configuration in the /etc/network/interfaces.d/
directory which is not entirely known by the role at any given moment, and that's why the role does not clear these directories on each run.
If you want to remove an interface from a host correctly, you first need to mark it for removal by Ansible. Don't remove it from inventory, but add state: "absent"
key to its configuration; that way Ansible will know that it should remove the interface on the next run. If you remove the configuration of a given interface from the inventory, Ansible doesn't know about that interface at all, and doesn't touch it.
if i create a bridge using debops.ifupdown
and later remove that bridge, the interface-file does not get removed from
/etc/network/interfaces.config.d
(and/etc/network/interfaces.d
). maybe the directory should be purged before interface-files are being created