system-config/playbooks/manage-projects.yaml
Clark Boylan 8a9ed04cab Simplify gitea project creation control flow
Previously we set strategy: free and max_fail_percentage: 1 and this
probably made sense when we were using native ansible to do all of the
work to create projects. That was slow and broken down into many tasks.

Now however, we have a single task that calls out to a python module
that does all the work for each gitea host. That means we won't get any
additional parallelization from the free strategy. We also don't want to
stop the python module on all hosts if any of them fail, instead let
them all run to completion if they can. Then if any giteas fail we
should skip the play on review.

Change-Id: I1548e7946526b683d71fe4e905faabd1049f186c
2020-09-24 11:28:42 -07:00

16 lines
408 B
YAML

- hosts: "gitea:!disabled"
name: "Create repos on gitea servers"
roles:
- gitea-git-repos
- hosts: "review:review-dev:!review-test.opendev.org:!disabled"
name: "Create repos on gerrit servers"
tasks:
- name: Sync project-config
include_role:
name: sync-project-config
- name: Run manage-projects
include_role:
name: gerrit
tasks_from: manage-projects