d3220a7ade
We normally only do project settings when we create the project. Add a playbook we can use to do a manual sync from project-config. Change-Id: I5260f2de697420a01d796acc3128be00705a53ee
21 lines
582 B
YAML
21 lines
582 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://git.openstack.org/openstack-infra/project-config
|
|
dest: /opt/project-config
|
|
force: yes
|
|
register: gitinfo
|
|
|
|
- hosts: "gitea:!disabled"
|
|
name: "Create repos on gitea servers"
|
|
strategy: free
|
|
max_fail_percentage: 1
|
|
roles:
|
|
- role: gitea-git-repos
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
gitea_always_update: true
|