nioniosfr.git_source
Ansible 角色:从源码构建 Git
这是一个用于在基于 Linux 的系统上从源码构建 Git 版本的 Ansible 角色。
要求
该角色针对 Linux 系统。
它将从源码安装 Git,并将系统路径前面添加已安装版本。
- 支持在代理服务器后面的系统
- 在获取源码归档后验证校验和
Git 将安装在:/usr/src/git-{{git_version}}
。
系统的 PATH
变量将会添加定义于:/etc/profile.d/git-path.sh
的位置。
注意: 该角色需要启用 become
功能。
角色变量
可选:
git_version: "2.21.0" # 有效的 Git 版本
git_proxy_env: { # 如有需要,可以覆盖
no_proxy: ""
}
如果您处于代理后面,可以用代理环境变量的列表覆盖 git_proxy_env
。
依赖
无
示例剧本
- hosts: localhost
roles:
- role: nioniosfr.git_source # ansible-galaxy
- role: ansible-role-git-source # github 克隆
许可证
MIT
作者信息
关于项目
A role to install git from source code.
安装
ansible-galaxy install nioniosfr.git_source
许可证
mit
下载
81
拥有者
Principal Engineer