diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
commit | 91cd5480b5a1ca1103d5e239af3d331477c41c2c (patch) | |
tree | b495bf31e2d5da50b045838a1e8d0455db09ee65 /roles/vm-network/tasks/systemd-link.yaml |
initial commit as copy from helsinki ansible repo
Diffstat (limited to 'roles/vm-network/tasks/systemd-link.yaml')
-rw-r--r-- | roles/vm-network/tasks/systemd-link.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/vm-network/tasks/systemd-link.yaml b/roles/vm-network/tasks/systemd-link.yaml new file mode 100644 index 00000000..eb52474a --- /dev/null +++ b/roles/vm-network/tasks/systemd-link.yaml @@ -0,0 +1,15 @@ +--- +- name: remove legacy systemd.link units + file: + name: "/etc/systemd/network/{{ item }}" + state: absent + with_items: + - 50-virtio-kernel-names.link + - 99-default.link + +- name: install systemd network link units + template: + src: systemd.link.j2 + dest: "/etc/systemd/network/{{ '%02d' | format(item.idx + 10) }}-{{ item.name }}.link" + with_items: "{{ srv_network.systemd_link.interfaces }}" + notify: rebuild initramfs |