add git client role

This commit is contained in:
Timo Makinen 2019-05-17 10:21:18 +03:00
parent 08329644ec
commit 7dc298ce2f

View file

@ -0,0 +1,26 @@
---
- 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