etc-git: set user.email with sensible hostname
This commit is contained in:
parent
6c5e880938
commit
35f423a869
|
@ -12,6 +12,13 @@
|
||||||
creates: /etc/.git/
|
creates: /etc/.git/
|
||||||
register: git_init
|
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
|
- name: /etc/.git is secure
|
||||||
file:
|
file:
|
||||||
path: /etc/.git
|
path: /etc/.git
|
||||||
|
|
Loading…
Reference in a new issue