charlesrocket.essential.git role – Installs Git

Note

This role is part of the charlesrocket.essential collection (version 1.3.3).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install charlesrocket.essential.

To use it in a playbook, specify: charlesrocket.essential.git.

Entry point main – Installs Git

Synopsis

  • Install git on Unix/Linux machines and deploy credential helpers.

Parameters

Parameter

Comments

git_helper

list / elements=string

Helpers to deploy.

Choices:

  • "netrc"

  • "libsecret"

git_helper_directory

string

Deployment target for helpers.

Default: "~/bin"

git_repo_destination

string

Local git repository target.

Default: "~/src/git"

git_repo_force

boolean

Force git clone to override local modifications.

Choices:

  • false ← (default)

  • true

git_repo_shallow

boolean

Use shallow clone.

Choices:

  • false ← (default)

  • true

Authors

  • charlesrocket