add git client role
This commit is contained in:
parent
08329644ec
commit
7dc298ce2f
1 changed files with 26 additions and 0 deletions
26
roles/git/client/tasks/main.yml
Normal file
26
roles/git/client/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue