-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8aa64d
commit f3cb7cf
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
|
||
- name: Create git group | ||
group: name=git state=present | ||
|
||
- name: Create git user | ||
user: name=git home=/srv/git group=git shell=/bin/bash | ||
|
||
- name: Create git users .ssh folder | ||
file: path=/srv/git/.ssh state=directory owner=git group=git mode=700 | ||
|
||
- name: Create git users authorized_keys | ||
file: path=/srv/git/.ssh/authorized_keys state=touch owner=git group=git mode=700 | ||
|
||
- name: Set profile environment for git user | ||
copy: src=files/profile dest=/srv/git/.profile owner=git group=git | ||
|
||
- name: Install git-core package | ||
apt: name=git-core update_cache=yes |