Files
ansible-plugin-container-co…/zuul.d.prep/playbooks/pre.yml
Kevin Carter f2364022a6 Build skel to separate the OSA connection plugin
This change implements the basic skeleton to create a new repo for the
OSA connection plugin. This change will allow the connection plugin to
be installed standalone, and maintained by a larger community.

This change has pruned the git history so that all of the old history
and commiters record for the connection plugin remains intact.

Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2019-08-08 23:12:40 -05:00

43 lines
1.2 KiB
YAML

---
- hosts: all
pre_tasks:
- name: Set project path fact
set_fact:
ansible_project_path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
- name: Ensure output dirs
file:
path: "{{ ansible_user_dir }}/zuul-output/logs"
state: directory
- name: Setup bindep
pip:
name: "bindep"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_site_packages: true
- name: Run bindep
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate
{{ ansible_project_path }}/scripts/bindep-install
become: true
- name: Setup test-python
pip:
requirements: "{{ ansible_project_path }}/molecule-requirements.txt"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_site_packages: true
tasks:
- name: Get Ansible Galaxy roles
command: >-
{{ ansible_user_dir }}/test-python/bin/ansible-galaxy install
-fr
{{ ansible_project_path }}/ansible/ansible-role-requirements.yml
environment:
ANSIBLE_ROLES_PATH: "{{ ansible_project_path }}/ansible/roles.galaxy"
roles:
- role: install-docker
when:
- container_tech == 'docker'