diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-12-06 21:36:52 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-12-06 21:38:23 +0100 |
commit | 753dc0b756b9963404a17640a625fd826513bee5 (patch) | |
tree | e5d533d4112939cbe2dc8dc90ca8f072d7ae3b73 /roles/space_server | |
parent | 4f30f1583de913c011a6c6a40e53f2e4855eb489 (diff) | |
download | labitat-ansible-753dc0b756b9963404a17640a625fd826513bee5.tar.gz labitat-ansible-753dc0b756b9963404a17640a625fd826513bee5.tar.xz labitat-ansible-753dc0b756b9963404a17640a625fd826513bee5.zip |
space_server: networkd: fix unneeded calculation
Diffstat (limited to 'roles/space_server')
-rw-r--r-- | roles/space_server/tasks/networkd.yml | 4 |
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: |