- hosts: all
  tasks:
    - set_fact:
        devstack_base_dir: /opt/stack
      when: devstack_base_dir is not defined

    - name: Copy CRI-O logs
      shell:
        cmd: "{{ devstack_base_dir }}/kuryr-kubernetes/tools/gate/copy_crio_logs.sh"
        executable: /bin/bash
        chdir: "{{ zuul.project.src_dir }}"
      environment:
        DEVSTACK_BASE_DIR: "{{ devstack_base_dir }}"
      become: true
