8a9ed04cab
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
17 lines
437 B
YAML
17 lines
437 B
YAML
- hosts: "localhost:!disabled"
|
|
name: "sync-gitea-projects: Collect the project-config ref"
|
|
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"
|
|
roles:
|
|
- role: gitea-git-repos
|
|
gitea_always_update: true
|