aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/systemd-networkd
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/systemd-networkd')
-rw-r--r--ansible/roles/systemd-networkd/handlers/main.yml4
-rw-r--r--ansible/roles/systemd-networkd/tasks/main.yml7
2 files changed, 9 insertions, 2 deletions
diff --git a/ansible/roles/systemd-networkd/handlers/main.yml b/ansible/roles/systemd-networkd/handlers/main.yml
index 5050e02..c9b2603 100644
--- a/ansible/roles/systemd-networkd/handlers/main.yml
+++ b/ansible/roles/systemd-networkd/handlers/main.yml
@@ -1,5 +1,5 @@
-- become: yes
- name: reload
+- name: reload
+ become: yes
systemd:
name: systemd-networkd
state: reloaded
diff --git a/ansible/roles/systemd-networkd/tasks/main.yml b/ansible/roles/systemd-networkd/tasks/main.yml
index 0e8856b..aed4168 100644
--- a/ansible/roles/systemd-networkd/tasks/main.yml
+++ b/ansible/roles/systemd-networkd/tasks/main.yml
@@ -3,6 +3,13 @@
name: systemd-networkd
state: started
enabled: yes
+- name: mkdir /etc/systemd/network
+ become: yes
+ file:
+ path: "/etc/systemd/network"
+ state: directory
+ owner: systemd-network
+ group: systemd-network
- become: yes
loop: "{{ systemd_networkd__files | default([]) }}"
template: