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

  vars_files:
    - vars/main.yml

  roles:
    - role: image-name
    - role: default-user
    - role: systemd-networkd
      when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '17') or
            (ansible_distribution == 'Fedora' and ansible_distribution_version < '30')
    - role: testing
    - role: repos
    - role: cloud-init
    - role: qemu-guest-agent
    - role: ssh
    - role: ntp
    - role: trove
    - role: nectar-user
    - role: cleanup

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

  vars_files:
    - vars/main.yml

  roles:
    - role: image-name
    - role: default-user
    - role: systemd-networkd
      when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '17') or
            (ansible_distribution == 'Fedora' and ansible_distribution_version < '30')
    - role: testing
    - role: repos
    - role: cloud-init
    - role: qemu-guest-agent
    - role: ssh
    - role: ntp
    - role: trove
    - role: nectar-user
    - role: facts
    - role: cleanup

Include facts to trove image build
Include facts to trove image build

Change-Id: Ic176a88472ff67a24affa7acabbf7ea672fc0d75
