# # DO NOT EDIT THIS FILE! Please edit the files in tests/integration/common instead. # --- - name: Check if cleanup.yml exists ansible.builtin.stat: path: "{{ role_path }}/tasks/cleanup.yml" register: cleanup_file - name: Check if prepare.yml exists ansible.builtin.stat: path: "{{ role_path }}/tasks/prepare.yml" register: prepare_file - name: Include cleanup tasks ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup.yml" when: cleanup_file.stat.exists - name: Include prepare tasks ansible.builtin.include_tasks: "{{ role_path }}/tasks/prepare.yml" when: prepare_file.stat.exists - name: Run tests block: - name: Include test tasks ansible.builtin.include_tasks: "{{ role_path }}/tasks/test.yml" always: - name: Include cleanup tasks ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup.yml" when: cleanup_file.stat.exists