Migrated from github.com/shafiqalibhai/ansible-role-git https://galaxy.ansible.com/list#/roles/431
  • Dockerfile 100%
Find a file
2026-04-27 22:57:43 +00:00
defaults Revert "Move dependencies into a default so it can be overridden" 2015-10-30 18:46:47 +00:00
meta Allow role to work with Debian/Ubuntu. 2014-03-19 09:17:29 -05:00
tasks Added gcc to dependencies. 2015-10-30 18:48:04 +00:00
tests Update test file names for consistency. 2015-02-03 22:59:13 -06:00
vars Fix git_install_from_source, and use defaults instead of vars. 2014-08-26 09:39:48 -05:00
.gitignore Added gitignore file. 2014-03-12 10:43:19 -05:00
.travis.yml Update test file names for consistency. 2015-02-03 22:59:13 -06:00
Dockerfile Add Dockerfile: ansible runner with role pre-installed 2026-04-27 22:57:43 +00:00
README.md Update README with comprehensive project information 2026-04-27 20:32:51 +00:00

ansible-role-git

Overview

Installs Git, a distributed version control system, on any RHEL/CentOS or Debian/Ubuntu Linux system.

Detected project type: Ansible role.

This repository was migrated from upstream source github.com/shafiqalibhai/ansible-role-git and is preserved here for archival, reference, or continued local development.

At a glance

  • Default branch: master
  • Visibility: public
  • Size: 51 KB
  • Created: 2026-04-27
  • Last updated: 2026-04-27
  • Stars / Forks / Open issues: 0 / 0 / 0

Repository structure

  • defaults/
  • meta/
  • tasks/
  • tests/
  • vars/
  • .gitignore (12 B)
  • .travis.yml (1,469 B)
  • README.md (1,699 B)

Getting started

Clone the repository:

git clone https://forgejo.deployview.com/ssa/ansible-role-git.git
cd ansible-role-git

Installation

ansible-galaxy install -r requirements.yml
ansible-playbook playbook.yml

Usage

Include this role/collection in a playbook and run with ansible-playbook. See defaults/main.yml (if present) for configurable variables.

Original README

The content below is preserved from the previous README. Headings have been demoted so they don't compete with the new top-level sections.

Ansible Role: Git

Build Status

Installs Git, a distributed version control system, on any RHEL/CentOS or Debian/Ubuntu Linux system.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

workspace: /root

Where certain files will be downloaded and adjusted prior to git installation, if needed.

git_enablerepo: ""

This variable, a well as git_packages, 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_packages:
  - git
  - git-svn

The specific Git packages that will be installed. By default, git-svn is included, but you can easily add this variable to your playbook's variables and remove git-svn if desired.

git_install_from_source: false
git_install_path: "/usr"
git_version: "2.1.0"

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://www.kernel.org/pub/software/scm/git/), and git_install_path defines where git should be installed.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
    - { role: geerlingguy.git }

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Contributing

Contributions are welcome. The typical workflow is:

  1. Open an issue describing the change you'd like to make.
  2. Fork the repository (or create a feature branch if you have write access).
  3. Commit your changes with clear, descriptive messages.
  4. Open a pull request against the master branch.

Please follow the existing code style and include tests or reproduction steps where relevant.

License

No LICENSE file is currently present in this repository. Treat the contents as all rights reserved by the author until an explicit license is added. If you intend to share or accept contributions, consider adding an OSI-approved license such as MIT, Apache-2.0, or GPL-3.0.

Repository

  • Browse: https://forgejo.deployview.com/ssa/ansible-role-git
  • Clone (HTTPS): https://forgejo.deployview.com/ssa/ansible-role-git.git
  • Clone (SSH): ssh://git@forgejo.deployview.com:30143/ssa/ansible-role-git.git
  • Upstream / origin: github.com/shafiqalibhai/ansible-role-git

This README was generated automatically based on repository metadata, contents, and any prior README content. Edit any section above to add project-specific detail.