zuul-jobs/roles/ensure-virtualenv/tasks/Debian.yaml
Ian Wienand af3f79121a
linter: Use capitals for names
This is pretty trivial, but consistency is probably better in this
regard and it does guide you to writing a sentence that is human
parsable, which is the point of it.

Change-Id: Iaab9bb6aec0ad0f1d3cae10364c1f1b37d02801e
2022-11-07 10:37:53 +11:00

17 lines
575 B
YAML

# The pip that comes with Xenial (v8) does not understand how to
# fallback to pypi in the OpenDev mirror setup. The virtualenv
# package tries to use the system pip to bootstrap the environment it
# creates, and thus the xenial packaged virtualenv can not create a
# working environment. We pre-run ensure-pip there to bring in our
# backported pip9 and make this work.
- name: Use ensure-pip for Xenial
include_role:
name: ensure-pip
when: ansible_distribution_release == 'xenial'
- name: Install virtualenv
package:
name:
- virtualenv
become: yes