https://github.com/charlesrocket/git-role
Git installer for Unix/Linux
https://github.com/charlesrocket/git-role
ansible git
Last synced: 8 months ago
JSON representation
Git installer for Unix/Linux
- Host: GitHub
- URL: https://github.com/charlesrocket/git-role
- Owner: charlesrocket
- License: mit
- Archived: true
- Created: 2022-09-15T16:10:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-26T09:12:00.000Z (about 3 years ago)
- Last Synced: 2024-10-10T01:47:57.624Z (over 1 year ago)
- Topics: ansible, git
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git_role
[](https://galaxy.ansible.com/charlesrocket/git)
[](https://github.com/charlesrocket/git_role/actions/workflows/molecule.yml)

Install Git on Unix/Linux machines with Ansible.
## Setup
Run `ansible-galaxy install charlesrocket.git` or use `requirements.yml`:
```
roles:
- name: charlesrocket.git
```
## Example
```
- name: Playbook
hosts: all
roles:
- charlesrocket.git
```
### Credential helper
Define the following variables to deploy the credential helper:
```
git_repo_destination: "~/gitlab/git" # git repository destination
git_helper_directory: "~/bin" # helper directory
git_helper: ["netrc"]
```
* Add `git_repo_shallow: true` to use shallow clone.
* Add `git_repo_force: true` to override local modifications.