{"id":18663102,"url":"https://github.com/asapdotid/ansible-role-git","last_synced_at":"2026-05-09T09:44:41.846Z","repository":{"id":188014362,"uuid":"677968651","full_name":"asapdotid/ansible-role-git","owner":"asapdotid","description":"Installs Git, a distributed version control system, on any RHEL/CentOS/Almalinux/Rocky Linux, Fedora, Debian/Ubuntu Linux system.","archived":false,"fork":false,"pushed_at":"2023-11-07T10:52:16.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T16:43:08.941Z","etag":null,"topics":["ansible","ansible-role","development","git"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asapdotid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-13T08:47:25.000Z","updated_at":"2023-08-13T08:48:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"e523598a-cce8-475b-876a-4c5329c539d2","html_url":"https://github.com/asapdotid/ansible-role-git","commit_stats":null,"previous_names":["asapdotid/ansible-role-git"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapdotid%2Fansible-role-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapdotid%2Fansible-role-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapdotid%2Fansible-role-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asapdotid%2Fansible-role-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asapdotid","download_url":"https://codeload.github.com/asapdotid/ansible-role-git/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239487302,"owners_count":19646983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","development","git"],"created_at":"2024-11-07T08:15:00.854Z","updated_at":"2025-11-06T07:30:37.417Z","avatar_url":"https://github.com/asapdotid.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/34257858/129839002-15e3f2c7-3f75-46d4-afae-0fd207d7fdde.png\" width=\"100\" height=\"100\"\u003e\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\n    Ansible Role Git\n\u003c/h1\u003e\n\n\u003cp align=\"center\" style=\"font-size: 1.2rem;\"\u003e\n    Installs Git, a distributed version control system, on any RHEL/CentOS/Almalinux/Rocky Linux, Fedora, Debian/Ubuntu Linux system.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"GitHub tag (with filter)\" src=\"https://img.shields.io/github/v/tag/asapdotid/ansible-role-git\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.ansible.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Ansible-2.10-green?style=flat\u0026logo=ansible\" alt=\"Ansible\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"LICENSE.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" alt=\"Licence\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nCustom 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.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n| Name                        | Default Value | Description                                                   |\n| --------------------------- | ------------- | ------------------------------------------------------------- |\n| `git_setup`                 | `install`     | Specify whether you want to install Git `install`/`uninstall` |\n| `git_version`               | `\"2.40.1\"`    | The version of the Git to install                             |\n| `git_install_from_source`   | `false`       | Git install from source                                       |\n| `git_reinstall_from_source` | `false`       | Only applies if `git_install_from_source` is `true`           |\n\nThe most current stable version of Git for Debian.\n\n    git_debian_repository: \"ppa:git-core/ppa\"\n\nThis 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.\n\n    git_install_from_source: false\n\nWhether 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.\n\n    git_reinstall_from_source: false\n\nIf git is already installed at and older version, force a new source build. Only applies if `git_install_from_source` is `true`.\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n    - hosts: servers\n      roles:\n        - { role: asapdotid.git }\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis Ansible Role Git was created in 2021 by [Asapdotid](https://github.com/asapdotid).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasapdotid%2Fansible-role-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasapdotid%2Fansible-role-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasapdotid%2Fansible-role-git/lists"}