diff --git a/defaults/main.yml b/defaults/main.yml index 7c8ee638..7a0cc33b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -333,3 +333,4 @@ tempest_tempestconf_profile: # Stackviz tarball url stackviz_tarball: "https://tarballs.openstack.org/package-stackviz-element/stackviz-latest.tar.gz" stackviz_venv_bin: "/openstack/venvs/stackviz/bin" +tempest_run_stackviz: true diff --git a/tasks/tempest_install.yml b/tasks/tempest_install.yml index adc2585e..9e20c585 100644 --- a/tasks/tempest_install.yml +++ b/tasks/tempest_install.yml @@ -36,3 +36,4 @@ venv_install_destination_path: "{{ stackviz_venv_bin | dirname }}" venv_pip_install_args: "--isolated" venv_pip_packages: "{{ [ stackviz_tarball ] }}" + when: tempest_run_stackviz | bool diff --git a/tasks/tempest_run.yml b/tasks/tempest_run.yml index 6ffdb436..96c702f2 100644 --- a/tasks/tempest_run.yml +++ b/tasks/tempest_run.yml @@ -102,6 +102,7 @@ changed_when: false failed_when: false +- block: # Copy module doesn't copy recursively with remote_src set to true - name: Copy stackviz-html to home directory shell: | @@ -122,6 +123,7 @@ tags: # don't trigger ANSIBLE0013 - skip_ansible_lint + when: tempest_run_stackviz | bool - name: Fail if tempest tests did not succeed assert: