etc-git: set user.email with sensible hostname

This commit is contained in:
Jérémy Lecour 2017-01-03 09:20:39 +01:00 committed by Jérémy Lecour
parent 6c5e880938
commit 35f423a869

View file

@ -12,6 +12,13 @@
creates: /etc/.git/
register: git_init
- name: Git user.email is configured
ini_file:
dest: /etc/.git/config
section: user
option: email
value: "<root@{{ ansible_fqdn | default('localhost.localdomain') }}>"
- name: /etc/.git is secure
file:
path: /etc/.git