tobiko/playbooks/pre-tobiko-devstack.yaml
Federico Ressi d9c4a13f0c Enable DevStack os-fault plugin
Co-authored-by: Slawek Kaplonski <skaplons@redhat.com>

Change-Id: I704b07e8176e9d1b6ddbff6ecb751fb31da4a8a7
2019-09-02 22:33:00 +02:00

30 lines
862 B
YAML

---
# devstack copies repos from hardcoded list of organizations only and performa
# is not there so e.g. os-faults repo can't be copied there easily and we need
# to do this on our own
# copied from https://opendev.org/openstack/devstack/src/branch/master/roles/setup-devstack-source-dirs/tasks/main.yaml
- hosts: all
tasks:
- name: Find source repos from performa organization
find:
paths:
- src/opendev.org/performa
file_type: directory
register: found_repos
- name: Copy Zuul repos into devstack working directory
command: rsync -a {{ item.path }} /opt/stack
with_items: '{{ found_repos.files }}'
become: yes
- name: Set ownership of repos
file:
path: /opt/stack
state: directory
recurse: true
owner: stack
group: stack
become: yes