---
- hosts: molecule
  roles:
    - fetch-output

- hosts: ubuntu-focal
  tasks:
    # NOTE(mnaser): We refresh the inventory to drop all the hosts we've added
    #               using the add_host task to avoid any failures after.
    - meta: refresh_inventory

    - name: molecule destroy
      shell: molecule destroy
      args:
        chdir: "{{ zuul.project.src_dir }}"
      environment:
        ATMOSPHERE_STACK_NAME: "atmosphere-{{ zuul.build }}"