aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/space_server/tasks/networkd.yml13
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