diff --git a/tasks/tempest_install_source.yml b/tasks/tempest_install_source.yml index 0b542ae5..212ac56e 100644 --- a/tasks/tempest_install_source.yml +++ b/tasks/tempest_install_source.yml @@ -28,7 +28,11 @@ - section: "tempest" option: "venv_tag" value: "{{ tempest_venv_tag }}" - when: not tempest_plugin_install_source + # Note(jrosser) this task can be conditional on tempest_plugin_install_source + # but then that variable must be in scope when the handler inside python_venv_build + # runs, so it is better to duplicate the underlying condition logic + # when: not tempest_plugin_install_source + when: not "{{ ((tempest_install_method | default('source') == 'distro') and (ansible_os_family | lower == 'debian')) | bool }}" - name: Get tempest plugins from git git: