Skip to content

Ansible role to install and configure git version control system

License

Notifications You must be signed in to change notification settings

Provizanta/ansible-role-git

Repository files navigation

Ansible role: git

Build & Deploy

Setup git along with a specified configuration. If no configuration is specified, a limited minimal configuration is loaded to setup global gitignore policies.

Requirements

None

Role Variables

These variables are defined in defaults/main.yml:

git_scope: global           # enum: global|local

git_global_gitignore: []    # global gitignore lines

These variables are not defaulted and can be specified:

git_configuration:          # dict, configuration in YAML format

Dependencies

None

Example Playbook

- name: Converge
  hosts: all
  roles:
    - role: git
      vars:
        git_scope: global
        git_configuration:
          user:
            name: "Name Surname"
            email: "[email protected]"
          core:
            excludesfile: "/tmp/gitignore"

License

MIT

Author Information

Tibor Csóka