Ansible role to configure git.
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"
roles:
- { role: kosssi.gitconfig }
If you have vagrant, you can test this role:
cd tests
vagrant up
MIT