summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-12 16:42:22 +0100
committerMichael Scherer <misc@zarb.org>2014-12-12 16:42:22 +0100
commit50d40d79f7e201ee653b92484aaac87717a1c24a (patch)
treea63df1f737fa0b2d3814b4c67f153e44b0dedbfe
parentf03798dc859dca53e54c0788340b381a0e3fdd00 (diff)
Change the default config file to not have the alias on every vhost
-rw-r--r--roles/cgit/files/cgit.httpd.conf5
-rw-r--r--roles/cgit/tasks/main.yml3
2 files changed, 8 insertions, 0 deletions
diff --git a/roles/cgit/files/cgit.httpd.conf b/roles/cgit/files/cgit.httpd.conf
new file mode 100644
index 0000000..f389f2f
--- /dev/null
+++ b/roles/cgit/files/cgit.httpd.conf
@@ -0,0 +1,5 @@
+
+<Directory "/usr/share/cgit">
+ Require all granted
+</Directory>
+
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
index 5488df6..5e5d4ee 100644
--- a/roles/cgit/tasks/main.yml
+++ b/roles/cgit/tasks/main.yml
@@ -4,5 +4,8 @@
- cgit
- lineinfile: dest=/etc/cgitrc line=include=/etc/cgitrepos
+
- copy: mode=0644 src=cgitrepos dest=/etc/cgitrepos
+- copy: mode=0644 src=cgit.httpd.conf dest=/etc/httpd/conf.d/cgit.conf
+