tobiko/infrared/tasks/install.yml
abregman 160da96973 InfraRed Integration Skeleton
Make Tobiko an InfraRed plugin for simple and fine-grained
executions (both personal and in CI/CD environments).

This patch add a plugin spec, main entry playbook and several
tasks for basic config & run execution.

Change-Id: Ifcff4d79b4c920c28cc8170c4b8a8e9821c7b70d
2019-01-11 18:50:16 +02:00

38 lines
832 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: Clone Tobiko project
git:
repo: 'https://github.com/rhos-infra/tobiko'
dest: "~/tobiko"
- name: Create Virtualenv
pip:
virtualenv: "~/tobiko_venv"
name: "{{ item }}"
state: latest
with_items:
- pip
- setuptools
- pbr
- name: Install Tobiko
pip:
chdir: "~/tobiko"
virtualenv: "~/tobiko_venv"
name: "."
editable: true