59 lines
1.8 KiB
Django/Jinja
59 lines
1.8 KiB
Django/Jinja
# This playbook will clone repos and set up a directory
|
|
# structure for running the launcher-playbook to start
|
|
# the Zuul-based reproducer and run a job.
|
|
|
|
{% raw %}
|
|
- name: setup
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Create directory structure
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- git
|
|
- roles
|
|
- library
|
|
- playbooks/tripleo-ci-reproducer
|
|
|
|
- name: Clone repos needed for reproducer
|
|
git:
|
|
repo: "{{ item }}"
|
|
dest: "git/{{ item.replace('.git', '').split('/')[-1:]|join('/') }}"
|
|
update: no
|
|
with_items:
|
|
- https://git.openstack.org/openstack/tripleo-quickstart.git
|
|
- https://github.com/rdo-infra/ansible-role-tripleo-ci-reproducer.git
|
|
|
|
- name: Copy roles and libraries for tripleo-quickstart
|
|
synchronize:
|
|
src: 'git/tripleo-quickstart/{{ item }}/'
|
|
dest: '{{ item }}/'
|
|
with_items:
|
|
- roles
|
|
- library
|
|
|
|
- name: Copy setup files from tripleo-quickstart
|
|
synchronize:
|
|
src: 'git/tripleo-quickstart/{{ item }}'
|
|
dest: "./{{ item }}"
|
|
with_items:
|
|
- install-deps.sh
|
|
|
|
- name: requirements from ansible-role-tripleo-ci-reproducer
|
|
synchronize:
|
|
src: 'git/ansible-role-tripleo-ci-reproducer/{{ item }}'
|
|
dest: './{{ item }}'
|
|
with_items:
|
|
- bindep.txt
|
|
- requirements.txt
|
|
|
|
- name: Copy ansible-role-tripleo-ci-reproducer roles and playbooks
|
|
synchronize:
|
|
src: 'git/ansible-role-tripleo-ci-reproducer{{ item.src_dir }}'
|
|
dest: '{{ item.dest_dir }}/'
|
|
with_items:
|
|
- { src_dir: '', dest_dir: 'roles' }
|
|
- { src_dir: '/playbooks/tripleo-ci-reproducer/', dest_dir: 'playbooks/tripleo-ci-reproducer' }
|
|
{% endraw %}
|