... | ... |
@@ -7,9 +7,11 @@ Installs [gitolite][], creates a [dedicated user][] to run it (defaults to |
7 | 7 |
(explicit) [user created repos][] with [multiple `OWNERS`][] and `user/USER/*` |
8 | 8 |
[personal branches][] for `USERS`, allows users to run [`symbolic-ref`][] (e.g. |
9 | 9 |
to change `HEAD`, the default branch), prepares for [integration with a |
10 |
-webserver][] (including acting as a [`git-http-backend`][] replacement, and |
|
11 |
-serving repos without the `.git` suffix), allows [custom local code][], and |
|
12 |
-prepares for [easy usage][`git-multihook`] of [custom local hooks][]. |
|
10 |
+webserver][] (including acting as a [`git-http-backend`][] replacement, serving |
|
11 |
+repos without the `.git` suffix, and generating |
|
12 |
+[`$GIT_DIR`][]`/`[`README.html`][] if [pandoc][] is available), allows [custom |
|
13 |
+local code][], and prepares for [easy usage][`git-multihook`] of [custom local |
|
14 |
+hooks][]. |
|
13 | 15 |
|
14 | 16 |
[`ansible-role-gitolite`]: https://git.rcrnstn.net/rcrnstn/ansible-role-gitolite |
15 | 17 |
[Ansible]: https://docs.ansible.com/ansible |
... | ... |
@@ -24,6 +26,9 @@ prepares for [easy usage][`git-multihook`] of [custom local hooks][]. |
24 | 26 |
[`symbolic-ref`]: https://git-scm.com/docs/git-symbolic-ref |
25 | 27 |
[integration with a webserver]: https://gitolite.com/gitolite/gitweb-daemon.html |
26 | 28 |
[`git-http-backend`]: https://git-scm.com/docs/git-http-backend |
29 |
+[`$GIT_DIR`]: https://www.git-scm.com/docs/git#Documentation/git.txt-codeGITDIRcode |
|
30 |
+[`README.html`]: https://git-scm.com/docs/gitweb#Documentation/gitweb.txt-READMEhtml |
|
31 |
+[pandoc]: https://pandoc.org |
|
27 | 32 |
[custom local code]: https://gitolite.com/gitolite/non-core.html#using-the-gitolite-admin-repo-to-manage-non-core-code |
28 | 33 |
[`git-multihook`]: https://git.rcrnstn.net/rcrnstn/git-multihook |
29 | 34 |
[custom local hooks]: https://gitolite.com/gitolite/cookbook#adding-other-non-update-hooks |
... | ... |
@@ -7,6 +7,9 @@ gitolite_webserver_user_name: "www-data" |
7 | 7 |
gitolite_deps_dir: "{{ gitolite_user_home }}" |
8 | 8 |
gitolite_deps_git_multihook: |
9 | 9 |
- "https://git.rcrnstn.net/rcrnstn/git-multihook" |
10 |
+gitolite_deps_post_receive: |
|
11 |
+ - "https://git.rcrnstn.net/rcrnstn/git-hook-pandoc-readme" |
|
10 | 12 |
gitolite_deps: "{{ |
11 |
- gitolite_deps_git_multihook |
|
13 |
+ gitolite_deps_git_multihook + |
|
14 |
+ gitolite_deps_post_receive |
|
12 | 15 |
}}" |
... | ... |
@@ -150,3 +150,10 @@ |
150 | 150 |
command: "{{ gitolite_hooks_dir | quote }}/git-multihook update" |
151 | 151 |
register: result |
152 | 152 |
changed_when: result.stdout != "" |
153 |
+ |
|
154 |
+ - name: "Symlink post-receive hooks" |
|
155 |
+ file: |
|
156 |
+ src: "{{ gitolite_deps_dir }}/{{ item | basename }}/{{ item | basename }}" |
|
157 |
+ dest: "{{ gitolite_hooks_dir }}/post-receive.d/{{ item | basename }}" |
|
158 |
+ state: 'link' |
|
159 |
+ loop: "{{ gitolite_deps_post_receive }}" |