jetune.git
Ansible Git Role for Linux
This is an Ansible role to install Git on Linux operating systems. You can install it from a package repository or build it from source.
Supported Versions
- Git versions 1.9.x and 2.x.y
Supported Operating Systems
- CentOS 6/7
- RedHat 6/7
- Ubuntu Xenial/Bionic
- Debian Jessie/Stretch
Role Variables
- install_from_source: Set this to
trueto install from source, orfalseto install from a repository. - v_major: Major version of Git to install when building from source.
- v_minor: Minor version of Git to install when building from source.
- v_patch: Patch version of Git to install when building from source.
- from_github: Set to
trueto download the source from GitHub; set tofalsefor the kernel repository. - required_packages: Packages needed before building Git from source. Default includes common build packages.
- force_install: Set to
trueto force installation even if Git is already installed. - install_doc: Set to
trueto build and install documentation when installing from source; default isfalse. - packages: List of packages to install when using a repository; default is
git-all. - additional_repos: Additional repositories to enable for RedHat-based systems when installing Git from a repository.
Usage
To install the role:
ansible-galaxy install jetune.gitExample playbook for installing from a repository:
--- - hosts: all roles: - role: jetune.git vars: install_from_source: false additional_repos: "" packages: - git-all - git-svnExample playbook for installing from source:
--- - hosts: all roles: - role: jetune.git vars: v_major: 2 v_minor: 20 v_patch: 0 install_from_source: true from_github: true install_doc: false force_install: true
Informazioni sul progetto
Git installation ansible role
Installa
ansible-galaxy install jetune.gitLicenza
apache-2.0
Download
105
Proprietario


