Browse Source

Fix virtualenv_package_name for Debian

We actually also need to install the virtualenv package, for the binary.

Change-Id: Ic7a90e27f243a6ec1d94d10c86ef7960323e142d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/00/623600/1
Paul Belanger 3 years ago
parent
commit
9a71107491
  1. 2
      defaults/main.yaml
  2. 5
      tasks/install/package.yaml
  3. 4
      vars/Debian.yaml
  4. 3
      vars/RedHat.yaml

2
defaults/main.yaml

@ -23,8 +23,6 @@ virtualenv_git_version: master
virtualenv_install_method: pip
virtualenv_package_name: python3-virtualenv
virtualenv_pip_name: virtualenv
#virtualenv_pip_extra_args:
#virtualenv_pip_version:

5
tasks/install/package.yaml

@ -12,6 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- name: Define virtualenv_package_name
set_fact:
virtualenv_package_name: "{{ __virtualenv_package_name | list }}"
when: virtualenv_package_name is not defined
- name: Install virtualenv from package
become: yes
package:

4
vars/Debian.yaml

@ -27,3 +27,7 @@
---
__virtualenv_build_depends:
- git
__virtualenv_package_name:
- python3-virtualenv
- virtualenv

3
vars/RedHat.yaml

@ -14,3 +14,6 @@
---
__virtualenv_build_depends:
- git
__virtualenv_package_name:
- python3-virtualenv

Loading…
Cancel
Save