aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/systemd-networkd/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/systemd-networkd/tasks')
-rw-r--r--ansible/roles/systemd-networkd/tasks/main.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/ansible/roles/systemd-networkd/tasks/main.yml b/ansible/roles/systemd-networkd/tasks/main.yml
index 13c167b..0e8856b 100644
--- a/ansible/roles/systemd-networkd/tasks/main.yml
+++ b/ansible/roles/systemd-networkd/tasks/main.yml
@@ -1,9 +1,11 @@
-- systemd:
+- become: yes
+ systemd:
name: systemd-networkd
state: started
enabled: yes
-- loop: "{{ systemd_networkd__files | default([]) }}"
- copy:
+- become: yes
+ loop: "{{ systemd_networkd__files | default([]) }}"
+ template:
src: "{{ item }}"
dest: "/etc/systemd/network/{{ item | basename }}"
- notify: restart
+ notify: reload