
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>
43 lines
1.2 KiB
YAML
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'
|