tobiko/infrared/install.yml
abregman 641b627a7a Add install command to IR plugin
* 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
2019-03-24 21:15:49 +02:00

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"