system-config/playbooks/manage-projects.yaml
Monty Taylor b94a2c5b96 Update project-config in manage-projects
If we're going to trigger this from project-config, we should
make sure it updates project-config as a first step. Currently
it's counting on having run after service-review in run_all.sh.

Change-Id: I14ce9b42af533c742128ce87cda8c8fb897632e4
2020-03-30 10:00:12 -05:00

28 lines
746 B
YAML

# Run on localhost for lookup plugins, on review/review-dev
# because manage-projects runs remotely.
- hosts: "localhost:review:review-dev:!disabled"
name: "Clone project-config for projects list"
strategy: free
connection: local
tasks:
- name: Clone project-config repo
git:
repo: https://opendev.org/openstack/project-config
dest: /opt/project-config
force: yes
- hosts: "gitea:!disabled"
name: "Create repos on gitea servers"
strategy: free
max_fail_percentage: 1
roles:
- gitea-git-repos
- hosts: "review:review-dev:!disabled"
name: "Create repos on gerrit servers"
tasks:
- name: Run manage-projects
include_role:
name: gerrit
tasks_from: manage-projects