diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-04-21 23:28:35 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-04-21 23:28:35 +0200 |
commit | 2e5b51cc24b6f6c91e7f969fe14e3adc2d4e80f2 (patch) | |
tree | 6cbb61b2f17061fee06306a3ec2e58e2fc3e87de /roles/vm-network/tasks/systemd-link.yml | |
parent | updated google apt key (diff) |
rename all .yaml to .yml
Diffstat (limited to 'roles/vm-network/tasks/systemd-link.yml')
-rw-r--r-- | roles/vm-network/tasks/systemd-link.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/vm-network/tasks/systemd-link.yml b/roles/vm-network/tasks/systemd-link.yml new file mode 100644 index 00000000..ad12cd37 --- /dev/null +++ b/roles/vm-network/tasks/systemd-link.yml @@ -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 |