aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/space_server/tasks/networkd.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/space_server/tasks/networkd.yml b/roles/space_server/tasks/networkd.yml
index deada30..85cc1e2 100644
--- a/roles/space_server/tasks/networkd.yml
+++ b/roles/space_server/tasks/networkd.yml
@@ -24,8 +24,8 @@
- name: Delete unneeded network configuration
file:
- path: '{{ item }}'
+ path: '/etc/systemd/network/{{ item }}'
state: absent
- with_items: "{{ networkd_existing.files|map(attribute='path')|difference(networkd_created.results|map(attribute='dest'))|list }}"
+ with_items: "{{ networkd_existing.files|map(attribute='path')|map('basename')|difference(networkd_created.results|map(attribute='item')|map('basename'))|list }}"
# vim: set ts=2 sw=2 et: