From 7ad2c810f6743a12a75ada1751bd098960db6846 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 17 Sep 2024 20:53:53 +0200 Subject: danneri --- ansible/roles/systemd-networkd/handlers/main.yml | 4 ++-- ansible/roles/systemd-networkd/tasks/main.yml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'ansible/roles') 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: -- cgit v1.2.3