system-config/playbooks/sync-gitea-projects.yaml
Jeremy Stanley a39a939e03 Allow gitea_create_repos always_update to be list
Setting the gitea_always_update var for the gitea-git-repos role to
a list will filter metadata updates to only the project names
included in the supplied list. False and True still have their prior
meanings of do no metadata updates or force metadata updates for
every project we host.

Add testing for this, and also actually test that the rename
playbook renamed something.

Get rid of the git clone in the playbook since it's no longer
relevant to how we run things anyway, we'll instead want to rely on
the Zuul supplied projects.yaml path.

Change-Id: Id8238b232caffc242c6bda9fe39eb7e65fe5e059
2021-10-14 21:47:37 +00:00

10 lines
493 B
YAML

# Note: Override the gitea_always_update rolevar to either true (update all) or
# a list of specific projects if you want metadata applied for these, otherwise
# the default (false) does not set any project metadata. We intentionally leave
# it unset here so that we can test it in the system-config-run-gitea job after
# renaming a project, or to be able to set it from the command line.
- hosts: "gitea:!disabled"
name: "Create repos on gitea servers"
roles:
- role: gitea-git-repos