Ansible role to configure the global gitconfig and .gitignore.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults renamed repository Sep 18, 2017
meta migrated to ansible 2.4.0.0 Sep 24, 2017
tasks
templates renamed repository Sep 18, 2017
tests role import Sep 19, 2017
.gitignore renaming\nadded hash_behaviour Sep 11, 2017
.travis.yml fixed ruby version Jan 11, 2018
LICENSE
README.md removed blank lines Sep 25, 2017

README.md

ansible-git-config

Ansible role to configure the global gitconfig and .gitignore.

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Role Defaults Variables

# Sections and key-value pairs to include in the users .git-config
git_config:
  config:
    <section>:
      <key>: <value>
      <key>: <value>
      ...

  # Lines to be included in users global .gitignore file
  ignores:
    - ".vagrant"
    - ".DS_Store"

Example:

- hosts: all
  vars:
    git_config:
      config:
        user:
          name: Your Name
          email: your-email@exemple.org
      ignores:
        - ".vagrant"
        - ".DS_Store"
  roles:
    - { role: feffi.git-config }