
Ansible's git module defaults to cloning with recursive set to true [0]. None of the repos we clone for system-config have submodules which makes this unncessary and potentially problematic. Disable recursive clones. [0] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/git_module.html#parameter-recursive Change-Id: I6092ebc8991f126f76e21efbf2ba28cbddbff6f7
18 lines
462 B
YAML
18 lines
462 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
|
|
recursive: false
|
|
|
|
- hosts: "gitea:!disabled"
|
|
name: "Create repos on gitea servers"
|
|
roles:
|
|
- role: gitea-git-repos
|
|
gitea_always_update: true
|