diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-01-19 01:47:04 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-01-19 01:47:04 +0100 |
commit | 0085933dabbe4d36e3e1bf0a5a7e1f09e5c3645c (patch) | |
tree | 46f5802d79964b60b58ade02bd412a11c9caf781 /roles/vm/guest/network/tasks | |
parent | docker/engine: generic plugin handling (diff) |
vm/guest: some fixes for ubuntu installer, still not fully working
Diffstat (limited to 'roles/vm/guest/network/tasks')
-rw-r--r-- | roles/vm/guest/network/tasks/Ubuntu.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/vm/guest/network/tasks/Ubuntu.yml b/roles/vm/guest/network/tasks/Ubuntu.yml new file mode 100644 index 00000000..12dc4812 --- /dev/null +++ b/roles/vm/guest/network/tasks/Ubuntu.yml @@ -0,0 +1,15 @@ +--- +- name: configure systemd link units + when: network.systemd_link is defined + block: + - name: install systemd network link units + loop: "{{ network.systemd_link.interfaces }}" + loop_control: + label: "{{ item.name }}" + index_var: interface_index + template: + src: systemd.link.j2 + dest: "/etc/systemd/network/{{ '%02d' | format(interface_index + 11) }}-{{ item.name }}.link" + notify: rebuild initramfs + +## TODO: generate netplan config |