diff options
author | Tharre <tharre3@gmail.com> | 2018-06-15 17:19:24 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2018-06-15 17:19:24 +0200 |
commit | 76a74270c16d916c1bf274ee53d42694874bbf78 (patch) | |
tree | 81810a8d6279cad87963e59e7532bf6cd2be5d12 /roles/cgit/tasks | |
parent | c2e93c2370de9a0948b07e5768c7ac572d299c63 (diff) | |
download | infrastructure-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.yml | 46 |
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 |