cevich.parallel_git_repos
并行 Git 仓库
该角色使得从多个 Git 仓库并行克隆变得简单。
要求
与标准的 Ansible 2.4 git
模块相同。
角色变量
always_force
:
当为真时,忽略所有仓库的本地修改。强制克隆到所需状态,销毁任何可能已经存在的内容。
git_op_timeout
:
每个 Git 操作完成的最大等待时间(以秒为单位)。任何超过该时间的 Git 仓库克隆将导致整个角色失败。
git_op_status_delay
:
每个异步状态检查之间的间隔时间(以秒为单位)。如果大多数 Git 仓库相对较大或克隆速度较慢,请增加此值。
git_def_depth
:
默认克隆深度,如果所有/大多数仓库使用标签或版本引用,请将其设置为 null
。否则,只需在单独的 git_ops
中指定 depth
。
git_ops
:
指定 Ansible git
模块参数和数值的哈希列表(字典)。支持所有/大多数标准参数。 dest
和 repo
是必需的,按照惯例。
依赖关系
无
示例剧本
::
- 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
许可证
parallel_git_repos 使从多个 Git 仓库并行克隆变得简单。
版权所有 (C) 2017 Christopher C. Evich
本程序是自由软件:您可以根据自由软件基金会发布的 GNU 通用公共许可证的条款重新分发和/或修改它,许可证的版本为 3 或(根据您的选择)任何更高版本。
本程序的发布希望对您有所帮助,但不提供任何担保;甚至不隐含商销性或适用于特定用途的保证。有关更多细节,请参见 GNU 通用公共许可证。
您应已收到一份 GNU 通用公共许可证的副本。如果没有,请参见 <https://www.gnu.org/licenses/>。
作者信息
自 Windows 98 起就开始在 Linux 上制造麻烦和引发混乱。
持续集成
Travis CI: |ci_status|
.. |ci_status| image:: https://travis-ci.org/cevich/parallel_git_repos.svg?branch=master :target: https://travis-ci.org/cevich/parallel_git_repos
关于项目
This role makes it simple to clone from multiple git repositories in parallel.
安装
ansible-galaxy install cevich.parallel_git_repos
许可证
gpl-3.0
下载
140
拥有者
Hacking on Linux since Windows 98