diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-09 16:55:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-09 16:55:02 +0100 |
commit | edbe2bfb1b4845f853a1634565fbf264d1591628 (patch) | |
tree | 05b0451f42d2cb927719f52f93fac7358bd15d39 /ansible/roles/systemd-networkd | |
parent | d4de905ae685c750fa7f0b8f65db579d4aeec193 (diff) | |
download | infra-edbe2bfb1b4845f853a1634565fbf264d1591628.tar.gz infra-edbe2bfb1b4845f853a1634565fbf264d1591628.tar.bz2 infra-edbe2bfb1b4845f853a1634565fbf264d1591628.tar.xz infra-edbe2bfb1b4845f853a1634565fbf264d1591628.zip |
lxc-host:
o Correcting ordering of networkd files.
packages:
o Better split of package names.
unifi:
o importing role from Bitraf.
o Configring lxc host on birgitte.
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 | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/systemd-networkd/handlers/main.yml b/ansible/roles/systemd-networkd/handlers/main.yml new file mode 100644 index 0000000..9656da4 --- /dev/null +++ b/ansible/roles/systemd-networkd/handlers/main.yml @@ -0,0 +1,4 @@ +- name: restart + systemd: + name: systemd-networkd + state: restarted diff --git a/ansible/roles/systemd-networkd/tasks/main.yml b/ansible/roles/systemd-networkd/tasks/main.yml new file mode 100644 index 0000000..13c167b --- /dev/null +++ b/ansible/roles/systemd-networkd/tasks/main.yml @@ -0,0 +1,9 @@ +- systemd: + name: systemd-networkd + state: started + enabled: yes +- loop: "{{ systemd_networkd__files | default([]) }}" + copy: + src: "{{ item }}" + dest: "/etc/systemd/network/{{ item | basename }}" + notify: restart |