summaryrefslogtreecommitdiff
path: root/roles/git/templates/config.j2
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-02 17:03:49 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-02 17:03:49 +0100
commit397c4fed757d201af627636822981e85e84ea572 (patch)
treed6733d4022bf04784be84581f6c16e96a1b229e8 /roles/git/templates/config.j2
downloadAnsible-397c4fed757d201af627636822981e85e84ea572.tar.gz
Ansible-397c4fed757d201af627636822981e85e84ea572.tar.zst
Ansible-397c4fed757d201af627636822981e85e84ea572.zip
Validation initiale
Diffstat (limited to 'roles/git/templates/config.j2')
-rw-r--r--roles/git/templates/config.j223
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/git/templates/config.j2 b/roles/git/templates/config.j2
new file mode 100644
index 0000000..7182626
--- /dev/null
+++ b/roles/git/templates/config.j2
@@ -0,0 +1,23 @@
1[user]
2 signingkey = DC384748709D2619FF2867216D0CAFFDDB1CFE90
3{% if profile in role and role[profile] == "fretlink" %}
4 email = ismael.bouya@fretlink.com
5{% else %}
6 email = ismael.bouya@normalesup.org
7{% endif %}
8 name = Ismaël Bouya
9[commit]
10 gpgsign = true
11 verbose = true
12[push]
13 gpgSign = if-asked
14{% if profile in role and role[profile] == "fretlink" %}
15[fretlink]
16 remote-name = upstream
17{% endif %}
18[log]
19 showSignature = true
20{% if profile in role %}
21[init]
22 templateDir = ~/.config/git/templates_{{ role[profile] }}
23{% endif %}