--- - name: Install required packages include: install-packages.yaml - include_tasks: install-refstack-client.yaml - name: Generate accounts.yaml file include: generate-accounts.yaml when: accounts_path is not defined - name: Set path to provided accounts.yaml set_fact: path_to_accounts_file: "{{ accounts_path }}" when: accounts_path is defined - name: Generate tempest.conf file include: generate-tempestconf.yaml when: tempest_config_path is not defined - name: Set path to provided tempest.conf set_fact: path_to_tempest_config: "{{ tempest_config_path }}" when: tempest_config_path is defined - include_tasks: run-refstack-client.yaml - include_tasks: post-tasks.yaml when: upload_results | bool or download_artifacts | bool - when: test_list is defined block: - name: Check if we passed refstack tests fail: msg: "Refstack tests failed." # the refstack_result var got set in run-refstack-client.yaml when: refstack_result.rc > 0 - when: test_list is not defined block: - name: Check if we passed tests of all specified target programs fail: msg: "Refstack tests failed." # the refstack_results var got set in run-refstack-client.yaml when: item.rc > 0 with_items: "{{ refstack_results.results }}"