--- - 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