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
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
repo: '{{ ansible_role_src_root }}/src/opendev.org/opendev/ansible-role-{{ ansible_role }}'
|
||||
dest: '/etc/ansible/roles/{{ ansible_role }}'
|
||||
force: yes
|
||||
recursive: false
|
||||
loop: '{{ ansible_roles }}'
|
||||
loop_control:
|
||||
loop_var: ansible_role
|
||||
|
@@ -21,6 +21,7 @@
|
||||
git:
|
||||
repo: 'https://github.com/Matty9191/ssl-cert-check'
|
||||
dest: /opt/ssl-cert-check
|
||||
recursive: false
|
||||
|
||||
- name: Install cron job
|
||||
cron:
|
||||
|
@@ -17,6 +17,7 @@
|
||||
dest: /opt/acme.sh
|
||||
# Pinned due to https://github.com/acmesh-official/acme.sh/issues/4416
|
||||
version: 3.0.5
|
||||
recursive: false
|
||||
register: clone_acmesh_result
|
||||
until: clone_acmesh_result is not failed
|
||||
retries: 3
|
||||
|
@@ -15,6 +15,7 @@
|
||||
refspec: "{{ item.refspec | default(omit) }}"
|
||||
version: "{{ item.version | default(omit) }}"
|
||||
dest: "/opt/source/{{ item.name }}"
|
||||
recursive: false
|
||||
loop: "{{ dns_repos }}"
|
||||
- name: Set base rsync options
|
||||
set_fact:
|
||||
|
@@ -8,6 +8,7 @@
|
||||
repo: https://opendev.org/openstack/project-config
|
||||
dest: /opt/project-config
|
||||
force: yes
|
||||
recursive: false
|
||||
|
||||
- hosts: "gitea:!disabled"
|
||||
name: "Create repos on gitea servers"
|
||||
|
Reference in New Issue
Block a user