diff --git a/roles/ensure-pip/README.rst b/roles/ensure-pip/README.rst index 835613301..d757d7fb9 100644 --- a/roles/ensure-pip/README.rst +++ b/roles/ensure-pip/README.rst @@ -58,7 +58,7 @@ This role will also install ``wheel`` components sufficient to run **Output Variables** -.. zuul:rolevar:: ensure_pip_virtualenv_cmd +.. zuul:rolevar:: ensure_pip_virtualenv_command This variable will be set to a command appropriate for general usage with the ``pip`` module ``virtualenv_command`` argument on the diff --git a/roles/ensure-pip/tasks/main.yaml b/roles/ensure-pip/tasks/main.yaml index e85d2ab5d..9ef9beaea 100644 --- a/roles/ensure-pip/tasks/main.yaml +++ b/roles/ensure-pip/tasks/main.yaml @@ -74,7 +74,7 @@ set_fact: _host_virtualenv: '{{ (_venv_probe.rc == 0) | ternary(_venv_probe.stdout + " -m venv", "virtualenv") }}' -- name: Set ensure_pip_virtualenv_cmd +- name: Set ensure_pip_virtualenv_command set_fact: ensure_pip_virtualenv_command: '{{ ensure_pip_virtualenv_command | default(_host_virtualenv) }}' cacheable: true