git: Refactor hierarcy and names

git/client is now git and in software submodule
git/server is now git-server
This commit is contained in:
Timo Makinen 2021-08-31 19:21:52 +00:00
parent e13b87324c
commit 90142649d7
13 changed files with 6 additions and 44 deletions

View file

@ -22,8 +22,8 @@
roles: roles:
- base - base
- git/client - git
- git/server - git-server
- sssd - sssd
- nfs-client - nfs-client
- autofs - autofs

View file

@ -67,7 +67,7 @@
with_items: with_items:
- cups-client - cups-client
- firefox - firefox
- git/client - git
- google-chrome - google-chrome
- mutt - mutt
- opencollab - opencollab

View file

@ -1,5 +1,5 @@
--- ---
dependencies: dependencies:
- {role: epel-repo} - {role: epel-repo}
- {role: git/client} - {role: git}
- {role: nginx/server} - {role: nginx/server}

View file

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Before After
Before After

View file

@ -1,5 +1,5 @@
--- ---
dependencies: dependencies:
- {role: git/client} - {role: git}
- {role: apache} - {role: apache}

View file

@ -1,22 +0,0 @@
---
- name: install git packages
package:
name: git
state: installed
- name: create git config for sh based shells
template:
dest: /etc/profile.d/git.sh
src: git.sh.j2
mode: 0644
owner: root
group: root
- name: create git config for csh based shells
template:
dest: /etc/profile.d/git.csh
src: git.csh.j2
mode: 0644
owner: root
group: root

View file

@ -1,8 +0,0 @@
if ($uid > 3000 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") then
if ( "`git config user.name`" == "" ) then
git config --global user.name "`getent passwd '${USER}' | cut -d : -f 5`"
endif
if ( "`git config user.email`" == "" ) then
git config --global user.email "${USER}@{{ mail_domain }}"
endif
endif

View file

@ -1,8 +0,0 @@
if [ $UID -gt 3000 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
if [ -z "$(git config user.name)" ]; then
git config --global user.name "$(getent passwd "$USER" | cut -d : -f 5)"
fi
if [ -z "$(git config user.email)" ]; then
git config --global user.email "${USER}@{{ mail_domain }}"
fi
fi

View file

@ -1,3 +1,3 @@
--- ---
dependencies: dependencies:
- {role: git/client} - {role: git}