Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asapdotid/ansible-role-git
Installs Git, a distributed version control system, on any RHEL/CentOS/Almalinux/Rocky Linux, Fedora, Debian/Ubuntu Linux system.
https://github.com/asapdotid/ansible-role-git
ansible ansible-role development git
Last synced: about 2 months ago
JSON representation
Installs Git, a distributed version control system, on any RHEL/CentOS/Almalinux/Rocky Linux, Fedora, Debian/Ubuntu Linux system.
- Host: GitHub
- URL: https://github.com/asapdotid/ansible-role-git
- Owner: asapdotid
- License: mit
- Created: 2023-08-13T08:47:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-07T10:52:16.000Z (over 1 year ago)
- Last Synced: 2024-11-07T08:14:57.213Z (3 months ago)
- Topics: ansible, ansible-role, development, git
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role Git
Installs Git, a distributed version control system, on any RHEL/CentOS/Almalinux/Rocky Linux, Fedora, Debian/Ubuntu Linux system.Custom and inspire from [Jeff Geerling - Ansible role git](https://github.com/geerlingguy/ansible-role-git) with updates. Needed something simple and working, this did the trick for me.
## Requirements
None.
## Role Variables
Available variables are listed below, along with default values (see `defaults/main.yml`):
| Name | Default Value | Description |
| --------------------------- | ------------- | ------------------------------------------------------------- |
| `git_setup` | `install` | Specify whether you want to install Git `install`/`uninstall` |
| `git_version` | `"2.40.1"` | The version of the Git to install |
| `git_install_from_source` | `false` | Git install from source |
| `git_reinstall_from_source` | `false` | Only applies if `git_install_from_source` is `true` |The most current stable version of Git for Debian.
git_debian_repository: "ppa:git-core/ppa"
This variable, a well as `git_package`, will be used to install git via a particular `yum` repo if `git_install_from_source` is false (CentOS only). Any additional repositories you have installed that you would like to use for a newer/different Git version.
git_install_from_source: false
Whether to install Git from source; if set to `true`, `git_version` is required and will be used to install a particular version of git (see all available versions here: https://mirrors.edge.kernel.org/pub/software/scm/git/), and `git_install_path` defines where git should be installed.
git_reinstall_from_source: false
If git is already installed at and older version, force a new source build. Only applies if `git_install_from_source` is `true`.
## Dependencies
None.
## Example Playbook
- hosts: servers
roles:
- { role: asapdotid.git }## License
MIT / BSD
## Author Information
This Ansible Role Git was created in 2021 by [Asapdotid](https://github.com/asapdotid).