aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks
diff options
context:
space:
mode:
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.