summaryrefslogtreecommitdiff
path: root/roles/vm/guest/network/tasks/Ubuntu.yml
blob: 12dc4812af11f2290e03e95926a222d900052a88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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