- hosts: all
  tasks:
    - name: Ensure artifacts/images directory exists
      file:
        path: '{{ ansible_user_dir }}/images'
        state: directory
    - name: Build Trove guest image
      shell: >-
        ./trovestack build-image \
          {{ guest_os }} \
          {{ guest_os_release }} \
          {{ dev_mode }} \
          {{ guest_username }} \
          {{ ansible_user_dir }}/images/trove-{{ branch }}-guest-{{ guest_os }}-{{ guest_os_release }}{{ image_suffix }}.qcow2
      args:
        chdir: "{{ ansible_user_dir }}/src/opendev.org/openstack/trove/integration/scripts"
      tags:
        - skip_ansible_lint
