
This playbook attempts to create a virtualenv, which now fails since virtualenv is not included in the base image. This adds the ensure-virtualenv role to make sure it is present. Change-Id: Id4e41fb6022536ce77cf274626d4fc3e0c6329eb Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
23 lines
749 B
YAML
23 lines
749 B
YAML
- hosts: all
|
|
roles:
|
|
- role: bindep
|
|
bindep_dir: "{{ zuul.projects['opendev.org/zuul/nodepool'].src_dir }}"
|
|
- role: test-setup
|
|
zuul_work_dir: "{{ zuul.projects['opendev.org/zuul/nodepool'].src_dir }}"
|
|
- ensure-devstack
|
|
- ensure-virtualenv
|
|
tasks:
|
|
# Create the virtualenv so we can control the python version
|
|
- name: Create virtualenv
|
|
pip:
|
|
name: extras
|
|
virtualenv: "{{ ansible_user_dir }}/.venv"
|
|
virtualenv_python: python3
|
|
- name: Install python project from source
|
|
include_role:
|
|
name: ensure-if-python
|
|
vars:
|
|
zuul_work_dir: "{{ item.src_dir }}"
|
|
error_on_failure: true
|
|
loop: "{{ zuul.projects.values() | selectattr('required') | list }}"
|