git: Store settings in config and not in environment variables
This commit is contained in:
parent
26765ffbf6
commit
179154ce12
3 changed files with 16 additions and 8 deletions
|
@ -6,21 +6,17 @@
|
|||
state: installed
|
||||
|
||||
- name: create git config for sh based shells
|
||||
copy:
|
||||
template:
|
||||
dest: /etc/profile.d/git.sh
|
||||
content: |
|
||||
export GIT_AUTHOR_EMAIL="${USER}@{{ mail_domain }}"
|
||||
export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
|
||||
src: git.sh.j2
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: create git config for csh based shells
|
||||
copy:
|
||||
template:
|
||||
dest: /etc/profile.d/git.csh
|
||||
content: |
|
||||
setenv GIT_AUTHOR_EMAIL "${USER}@{{ mail_domain }}"
|
||||
setenv GIT_COMMITTER_EMAIL "${GIT_AUTHOR_EMAIL}"
|
||||
src: git.csh.j2
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue