Skip to content

kosssi/ansible-role-gitconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: your-email@exemple.org
  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