ansible-role-common/templates/_gitconfig.j2
Jannik Beyerstedt a8285962a9 [TIDY] move when statements, fix whitespace
Having the when condition of a task at the top instead of bottom is
easiert to read. Also some spaces were another whitespace character on
accident.
2022-02-13 20:52:22 +01:00

19 lines
318 B
Django/Jinja

{% if gitconfig_name is defined and gitconfig_email is defined %}
[user]
name = {{ gitconfig_name }}
email = {{ gitconfig_email }}
{% endif %}
[core]
excludesfile = ~/.gitignore_global
editor = vi
[push]
default = matching
[color]
ui = auto
[help]
autocorrect = 1
[pull]
ff = only
[init]
defaultBranch = main