aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/systemd-networkd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-09-17 20:53:53 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-09-17 20:53:53 +0200
commit7ad2c810f6743a12a75ada1751bd098960db6846 (patch)
treea4749ca406b634e68b53c19f88536d9e581abb15 /ansible/roles/systemd-networkd
parent0ce711ed34b46940edc970e1d20a38218347c463 (diff)
downloadinfra-7ad2c810f6743a12a75ada1751bd098960db6846.tar.gz
infra-7ad2c810f6743a12a75ada1751bd098960db6846.tar.bz2
infra-7ad2c810f6743a12a75ada1751bd098960db6846.tar.xz
infra-7ad2c810f6743a12a75ada1751bd098960db6846.zip
danneri
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: