|
@@ -7,23 +7,10 @@
|
7
|
7
|
- name: Add www-data to the git group
|
8
|
8
|
user: name=www-data groups=git append=yes
|
9
|
9
|
|
10
|
|
-- name: Download gitolite release
|
11
|
|
- git: repo=git://github.com/sitaramc/gitolite
|
12
|
|
- dest=/home/git/gitolite
|
13
|
|
- version=v{{ gitolite_version }}
|
14
|
|
- accept_hostkey=yes
|
15
|
|
-
|
16
|
|
-- name: Give git user file permissions
|
17
|
|
- file: path=/home/git/gitolite
|
18
|
|
- state=directory
|
19
|
|
- recurse=yes
|
20
|
|
- owner=git
|
21
|
|
- group=git
|
22
|
|
-
|
23
|
|
-- name: Install gitolite
|
24
|
|
- command: ./gitolite/install -ln /usr/local/bin
|
25
|
|
- chdir=/home/git
|
26
|
|
- creates=/usr/local/bin/gitolite
|
|
10
|
+- name: Install gitolite3 package
|
|
11
|
+ apt: pkg=gitolite3 state=installed
|
|
12
|
+ tags:
|
|
13
|
+ - dependencies
|
27
|
14
|
|
28
|
15
|
- name: Copy .gitolite.rc file
|
29
|
16
|
copy: src=home_git_.gitolite.rc
|