Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions library/network_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2407,6 +2407,10 @@ def run_action_absent(self, idx):
# Delete all profiles except explicitly included
black_list_names = ArgUtil.connection_get_non_absent_names(self.connections)

# Keep loopback device too. Deleting it would trigger a 'changed' state
# every time the playbook is run as the device is recreated
black_list_names.add("lo")

for nm_profile in self._nm_provider.get_connections():
if name and nm_profile.get_id() != name:
continue
Expand Down
Loading