---
- hosts: all
  become: yes
  gather_facts: yes

  vars_files:
    - vars/main.yml

  roles:
    - role: image-name
    - role: default-user
    - role: repos
    - role: ifupdown
    - role: cloud-init
    - role: cleanup

---
- hosts: all
  become: yes
  gather_facts: yes

  vars_files:
    - vars/main.yml

  roles:
    - role: image-name
    - role: default-user
    - role: repos
    - role: systemd-networkd
      when: ansible_distribution_major_version >= '22'
    - role: ifupdown
      when: ansible_distribution_major_version < '22'
    - role: cloud-init
    - role: cleanup

Use networkd for Jammy undercloud images
Use networkd for Jammy undercloud images

Change-Id: Id5618f1a2cb59933e8718a7a38b61497ba1fe9f9
