
This patch improves the required package installing task - search first for a py3 and verify a virtualenv package is installed too. If no py3, check py2 and py2 virtualenv respectively. Change-Id: I7abc59f2edb0c4409ea67ac4b611a95779bef714
35 lines
947 B
YAML
35 lines
947 B
YAML
---
|
|
- 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
|
|
|
|
- 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
|