cevich.parallel_git_repos
Parallel Git Repositories
This tool makes it easy to clone several git repositories at the same time.
Requirements
Same as the standard Ansible 2.4 "git" module.
Role Variables
always_force
: If set to true, it will ignore any changes you made in your local copies of the repositories and will forcefully clone them to the specified state. This means any existing data will be erased.git_op_timeout
: The maximum time (in seconds) to wait for each git operation to finish. If a clone operation takes longer than this, the whole role will fail.git_op_status_delay
: The time (in seconds) to wait between each status check during async operations. Increase this if you are working with large or slow repositories.git_def_depth
: This sets the default clone depth. Usenull
if most repositories use tags or version references. Otherwise, specify the depth for each individual operation.git_ops
: A list of details for each git operation. You need to provide bothdest
(destination) andrepo
(repository link), as usual.
Dependencies
None.
Example Playbook
- hosts: all
vars:
git_ops:
- repo: "https://github.com/ansible/galaxy"
dest: "{{ playbook_dir }}/path/to/dir/galaxy"
- repo: "https://github.com/ansible/ansible"
dest: "{{ playbook_dir }}/path/to/dir/ansible"
- repo: "https://github.com/ansible/ansible-container"
dest: "{{ playbook_dir }}/path/to/dir/container"
roles:
- cevich.parallel_git_repos
License
This tool makes it easy to clone multiple git repositories simultaneously. Copyright (C) 2017 Christopher C. Evich
This software is free to use and modify under the terms of the GNU General Public License version 3 or later.
This program is shared in hopes it will be useful, but without any guarantees or warranties.
You should have received a copy of the GNU General Public License with this program. If not, please visit GNU Licenses.
Author Information
Creating chaos with Linux since Windows 98.
Continuous Integration
Travis CI:
View on Travis CI
This role makes it simple to clone from multiple git repositories in parallel.
ansible-galaxy install cevich.parallel_git_repos