charlesrocket.git

git_role

Ansible 角色 molecule 评分

在 Unix/Linux 机器上使用 Ansible 安装 Git。

设置

运行 ansible-galaxy install charlesrocket.git 或使用 requirements.yml

roles:
  - name: charlesrocket.git

示例

- name: Playbook
  hosts: all

  roles:
    - charlesrocket.git

凭证助手

定义以下变量以部署凭证助手:

git_repo_destination: "~/gitlab/git" # git 仓库目标
git_helper_directory: "~/bin" # 辅助程序目录
git_helper: ["netrc"]
  • 添加 git_repo_shallow: true 来使用浅克隆。
  • 添加 git_repo_force: true 来覆盖本地修改。
关于项目

Git installer for Unix/Linux

安装
ansible-galaxy install charlesrocket.git
许可证
mit
下载
1.3k
拥有者
searchers after horror haunt strange, far places.