From 035cd8f8dc2a1d7a6717849a7d01d2aba5b16f3c Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 25 Dec 2020 22:14:46 +0100 Subject: Add experimental role for cgit. Not prod ready --- roles/cgit/tasks/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roles/cgit/tasks/main.yml (limited to 'roles/cgit/tasks') diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml new file mode 100644 index 0000000..c5b2420 --- /dev/null +++ b/roles/cgit/tasks/main.yml @@ -0,0 +1,26 @@ + +# cgit ~~ roles/cgit/tasks/main.yml +# cgit web interface + +--- + +- name: ensure cgit is installed + package: + name: cgit + state: present + +- name: ensure httpd.d directory exists + file: path=/etc/httpd.d state=directory + +- name: copy httpd configuration + copy: + src: httpd.conf + dest: /etc/httpd.d/stagit.conf + owner: "{{ user_root }}" + group: "{{ group_root }}" + mode: 0644 + +- name: execute static-page generation script once + shell: ./generate-static-git.sh + args: + chdir: "{{ stagit_htmldir }}" -- cgit v1.2.3