diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-23 21:52:29 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-23 21:52:35 +0200 |
commit | 91b2e28e5252413b8cd74c670bcec50503138cfb (patch) | |
tree | 9fedcd8c8e93d75b6b89318b592afc67f3b67986 /roles/space_server | |
parent | 2bcbb416d2d14b522f245ed50985558f4be4ffb7 (diff) | |
download | labitat-ansible-91b2e28e5252413b8cd74c670bcec50503138cfb.tar.gz labitat-ansible-91b2e28e5252413b8cd74c670bcec50503138cfb.tar.xz labitat-ansible-91b2e28e5252413b8cd74c670bcec50503138cfb.zip |
space_server: networkd: drop flaky cleanup
It's still unfortunate that you can't easily tell ansible
to manage a directory completely including which files
should exists in it.
Remove flaky code trying to implement that.
Diffstat (limited to 'roles/space_server')
-rw-r--r-- | roles/space_server/tasks/networkd.yml | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/roles/space_server/tasks/networkd.yml b/roles/space_server/tasks/networkd.yml index 9e8ca3c..6bc3055 100644 --- a/roles/space_server/tasks/networkd.yml +++ b/roles/space_server/tasks/networkd.yml @@ -6,10 +6,6 @@ owner: root group: root mode: 0755 -- name: Get current network config - shell: 'ls -1 /etc/systemd/network/' - check_mode: no - register: network_files_all - name: Configure network copy: src: '{{ item }}' @@ -19,15 +15,6 @@ mode: 0644 with_fileglob: - 'networkd/network/*' - register: network_files - notify: - - restart networkd -- name: Clean up old files - file: - path: '/etc/systemd/network/{{ item }}' - state: absent - with_items: '{{ network_files_all.stdout_lines }}' - when: "item not in network_files.results|map(attribute='path')|map('basename')" notify: - restart networkd |