641b627a7a
* Allow users and CI pipelines to run tobiko install command * Users can specify which environment to use Also: * Removed os-fault configuration generation - this is done by Tobiko itself * Remove other unused tasks Change-Id: Ieeba8d4094cb3764a2a2de99debbac3acd886180
28 lines
701 B
YAML
28 lines
701 B
YAML
---
|
|
- name: Install Tobiko
|
|
hosts: undercloud
|
|
any_errors_fatal: true
|
|
gather_facts: yes
|
|
tasks:
|
|
- name: Install required packages
|
|
become: yes
|
|
yum:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- 'python-virtualenv'
|
|
- 'git'
|
|
|
|
- name: Create Virtualenv
|
|
vars:
|
|
packages: ['pip', 'setuptools', 'pbr', 'tox']
|
|
pip:
|
|
virtualenv: "{{ test.venv }}"
|
|
name: "{{ packages }}"
|
|
state: latest
|
|
|
|
- name: Create virtual env for Tobiko test cases
|
|
shell: |
|
|
"source {{ test.venv }}/bin/activate"
|
|
"tox -e {{ test.environment }} --notest"
|