system-config/playbooks/sync-gitea-projects.yaml
Clark Boylan fb1b82f3aa Revert "Allow gitea_create_repos always_update to be list"
This reverts commit a39a939e03.

Turns out that ansible module args don't get typed the way we expect
them. This means having a Boolean or List type argument just ends up in
confusion and always_update being truthy every which way. Revert until
we can fix this properly.

Change-Id: I596fe6883098ba636b1cad5196d1fdd76ff19076
2021-10-15 13:03:59 -07:00

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