nioniosfr.git_source
Ansible Role: Build Git from Source
This Ansible role helps you to build a version of Git from its source code for Linux systems.
Requirements
This role is meant for Linux systems.
It will install Git from source code and add the installed version to the system's PATH.
- Works on systems behind proxy servers.
- Checks the authenticity of the source code archive.
Git will be installed in: /usr/src/git-{{git_version}}
.
The system's PATH
variable will be updated to include this location, defined in: /etc/profile.d/git-path.sh
.
Note: You need to have become
privileges enabled to use this role.
Role Variables
Optional:
git_version: "2.21.0" # Specify a valid Git version
git_proxy_env: { # Change if necessary
no_proxy: ""
}
If you're using a proxy, you can modify the git_proxy_env
with proxy environment variables.
Dependencies
None
Example Playbook
- hosts: localhost
roles:
- role: nioniosfr.git_source # from ansible-galaxy
- role: ansible-role-git-source # from GitHub clone
License
MIT License
Author Information
Informazioni sul progetto
A role to install git from source code.
Installa
ansible-galaxy install nioniosfr.git_source
Licenza
mit
Download
81
Proprietario
Principal Engineer