aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-12-25 22:14:46 +0100
committerbinary <me@rgoncalves.se>2020-12-25 22:14:46 +0100
commit035cd8f8dc2a1d7a6717849a7d01d2aba5b16f3c (patch)
treec81ac90a72e59f9584319ce703c553d40b010f41 /roles/cgit/tasks
parentdb2c815292401e7beaac16fcdc48c342aa59a6f9 (diff)
downloadinfrastructure-035cd8f8dc2a1d7a6717849a7d01d2aba5b16f3c.tar.gz
Add experimental role for cgit. Not prod ready
Diffstat (limited to 'roles/cgit/tasks')
-rw-r--r--roles/cgit/tasks/main.yml26
1 files changed, 26 insertions, 0 deletions
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 }}"
remember that computers suck.