Files
system-config/playbooks/sync-gitea-projects.yaml
Clark Boylan 65c7959c8b Disable recursive git clones with ansible
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
2025-07-08 18:22:59 -07:00

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