Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 780 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 780 Bytes

ansible-role-gitconfig

Build Status

Ansible role to configure git.

Role Defaults Variables

git_config:
  <section>:
    <key>: <value>
git_ignore:
  - ".vagrant"
  - ".DS_Store"

Example:

git_config:
  user:
    name: Your Name
    email: [email protected]
  core:
    editor: vim
    excludesfile: "~/.gitexcludesfile"
  push:
    default: current
git_ignore:
  - "*.log"
  - ".vagrant"

Example Playbook

  roles:
    - { role: kosssi.gitconfig }

Vagrant

If you have vagrant, you can test this role:

cd tests
vagrant up

License

MIT