Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Documentation

Example

git_ppa: 'ppa:git-core/ppa'
git_config:
  core:
    autocrlf: 'false'
  color:
    branch: 'auto'
    diff: 'auto'
    interactive: 'auto'
    status: 'auto'
  push:
    default: 'matching'
git_users:
  - username: 'vagrant'
    group: 'vagrant'
    mode: '0644'
    git_config:
      user:
        name: 'John Doe'
        email: 'john.doe@gmail.com'
      github:
        user: 'johndoe'

Role Variables

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

git_ppa:

The launchpad PPA to add to APT. Which would allow a non-official package of Git to be installed.

git_packages:

A list of the Git packages to install. Each package supports all parameters from the apt or yum modules. If the value remains omitted, the following packages will be installed by default.

Debian/Ubuntu RedHat/CentOS
git git
git_config:

The system Git configuration, these values are stored in the file /etc/gitconfig which is the first place Git looks.

git_users:

The global Git configuration, these values are stored in the file ~/.gitconfig which is specific to each user.