From 76a74270c16d916c1bf274ee53d42694874bbf78 Mon Sep 17 00:00:00 2001 From: Tharre Date: Fri, 15 Jun 2018 17:19:24 +0200 Subject: Add cgit configuration for arch linux --- roles/cgit/tasks/main.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 roles/cgit/tasks/main.yml (limited to 'roles/cgit/tasks/main.yml') 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 -- cgit v1.2.3-70-g09d2