diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-09-17 20:53:53 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-09-17 20:53:53 +0200 |
commit | 7ad2c810f6743a12a75ada1751bd098960db6846 (patch) | |
tree | a4749ca406b634e68b53c19f88536d9e581abb15 /ansible/roles/systemd-networkd | |
parent | 0ce711ed34b46940edc970e1d20a38218347c463 (diff) | |
download | infra-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.yml | 4 | ||||
-rw-r--r-- | ansible/roles/systemd-networkd/tasks/main.yml | 7 |
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: |