Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.
/ git-role Public archive

Git installer for Unix/Linux

License

Notifications You must be signed in to change notification settings

charlesrocket/git-role

Repository files navigation

git_role

Ansible Role molecule score

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.

About

Git installer for Unix/Linux

Topics

Resources

License

Stars

Watchers

Forks