- - 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: "{{ vm_network.systemd_link.interfaces }}"
- notify: rebuild initramfs
+- name: install basic netplan config
+ import_tasks: netplan.yml
+ when: ansible_distribution == "Ubuntu" and (ansible_distribution_major_version | int) >= 18