26 lines
606 B
YAML
26 lines
606 B
YAML
---
|
|
|
|
- name: install git packages
|
|
package:
|
|
name: git
|
|
state: installed
|
|
|
|
- name: create git config for sh based shells
|
|
copy:
|
|
dest: /etc/profile.d/git.sh
|
|
content: |
|
|
export GIT_AUTHOR_EMAIL="${USER}@{{ mail_domain }}"
|
|
export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: create git config for csh based shells
|
|
copy:
|
|
dest: /etc/profile.d/git.csh
|
|
content: |
|
|
setenv GIT_AUTHOR_EMAIL "${USER}@{{ mail_domain }}"
|
|
setenv GIT_COMMITTER_EMAIL "${GIT_AUTHOR_EMAIL}"
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|