summaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-06-15 17:19:24 +0200
committerTharre <tharre3@gmail.com>2018-06-15 17:19:24 +0200
commit76a74270c16d916c1bf274ee53d42694874bbf78 (patch)
tree81810a8d6279cad87963e59e7532bf6cd2be5d12 /roles/cgit/tasks
parentc2e93c2370de9a0948b07e5768c7ac572d299c63 (diff)
downloadinfrastructure-76a74270c16d916c1bf274ee53d42694874bbf78.tar.gz
infrastructure-76a74270c16d916c1bf274ee53d42694874bbf78.tar.xz
infrastructure-76a74270c16d916c1bf274ee53d42694874bbf78.zip
Add cgit configuration for arch linux
Diffstat (limited to 'roles/cgit/tasks')
-rw-r--r--roles/cgit/tasks/main.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
new file mode 100644
index 0000000..9e1d47e
--- /dev/null
+++ b/roles/cgit/tasks/main.yml
@@ -0,0 +1,46 @@
+---
+
+- name: Install cgit and dependencies
+ package:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - cgit
+ - fcgiwrap
+ - python-pygments
+ - python-markdown
+ - python-docutils
+
+- name: Append git group to http user
+ user:
+ name: "http"
+ groups: "git"
+ append: yes
+ notify:
+ - restart fcgiwrap
+
+- name: Enable fcgiwrap
+ service:
+ name: fcgiwrap.socket
+ state: started
+ enabled: yes
+ notify:
+ - restart fcgiwrap
+
+- name: Copy configuration from template
+ template:
+ src: cgitrc.j2
+ dest: /etc/cgitrc
+ mode: 0644
+ owner: "root"
+ group: "root"
+
+- name: Copy nginx conf file
+ template:
+ src: cgit_nginx.conf.j2
+ dest: /etc/nginx/nginx.d/cgit.conf
+ mode: 0644
+ owner: "root"
+ group: "root"
+ notify:
+ - reload nginx