ソースを参照

Jessie can use gitolite3 package as well

Alex Payne 9年前
コミット
9247cc62db
3個のファイルの変更4行の追加51行の削除
  1. 4
    17
      roles/git/tasks/gitolite.yml
  2. 0
    31
      roles/git/tasks/gitolite_packaged.yml
  3. 0
    3
      roles/git/tasks/main.yml

+ 4
- 17
roles/git/tasks/gitolite.yml ファイルの表示

@@ -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

+ 0
- 31
roles/git/tasks/gitolite_packaged.yml ファイルの表示

@@ -1,31 +0,0 @@
1
-- name: Create gitolite group
2
-  group: name=git state=present
3
-
4
-- name: Create gitolite user
5
-  user: name=git state=present home=/home/git system=yes group=git
6
-
7
-- name: Add www-data to the git group
8
-  user: name=www-data groups=git append=yes
9
-
10
-- name: Install gitolite3 package
11
-  apt: pkg=gitolite3 state=installed
12
-  tags:
13
-    - dependencies
14
-
15
-- name: Copy .gitolite.rc file
16
-  copy: src=home_git_.gitolite.rc
17
-        dest=/home/git/.gitolite.rc
18
-        group=git
19
-        owner=git
20
-        mode=0644
21
-
22
-- name: Copy SSH public key to server
23
-  copy: src=gitolite.pub
24
-        dest=/home/git/{{ main_user_name }}.pub
25
-        group=git
26
-        owner=git
27
-        mode=0644
28
-
29
-- name: Setup gitolite
30
-  command: su - git -c 'gitolite setup -pk {{ main_user_name }}.pub'
31
-           chdir=/home/git

+ 0
- 3
roles/git/tasks/main.yml ファイルの表示

@@ -1,5 +1,2 @@
1 1
 - include: gitolite.yml tags=gitolite
2
-  when: ansible_distribution_release != 'trusty'
3
-- include: gitolite_packaged.yml tags=gitolite
4
-  when: ansible_distribution_release == 'trusty'
5 2
 - include: cgit.yml tags=cgit

読み込み中…
キャンセル
保存