git role that installs git, sets up its configs that all cloning roles depend on
marcus-grant opened this issue · 1 comments
marcus-grant commented
A lot of roles in the dotfiles repo depend on git to clone dotfile sets. It's good to manage role dependencies in ansible by declaring dependencies. Have a git role that:
- Installs git
- Templates in a git config file with several good starting configurations like username, real name, email, rebase/merge settings, default commit template, etc.
- It usually looks at
~/.gitconfig
, see if there's a way to make it happen in$XDG_CONFIG_HOME/git/config
instead - Some links:
- It usually looks at
- Also have it template/lineinfile ssh entries for github/gitlab for example so the SSH part of git works as expected
marcus-grant commented
c44f2e9 handled this