ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 28744e28d992677a6f7eaa88a10f321619fdc08e
parent 3c3a557f9d67415516ff7e0d9dcc82d1b3e7f186
Author: Leah Thein <leah@toaster.fritz.box>
Date: Wed, 2 Dec 2020 17:10:45 +0100

cgit: add syntax-highlighting and readme rendering
2 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/config-files/cgit/cgitrc b/config-files/cgit/cgitrc
@@ -3,18 +3,35 @@ logo=/cgit.png
 virtual-root=/
 
 root-title=ctucx.cgit
-root-desc=
+root-desc=my personal git repos
 
 local-time=1
 
+cache-size=30
+
 readme=:README.md
-about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh
+readme=:readme.md
+readme=:README.mkd
+readme=:readme.mkd
+readme=:README.rst
+readme=:readme.rst
+readme=:README.html
+readme=:readme.html
+readme=:README.htm
+readme=:readme.htm
+readme=:README.txt
+readme=:readme.txt
+readme=:README
+readme=:readme
+
+about-filter=/usr/lib/cgit/filters/about-formatting.sh
+source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
 
 snapshots=tar.gz tar.bz2 zip
 
 max-stats=quarter
 
-clone-url=http://cgit.ctu.cx/$CGIT_REPO_URL git@wanderduene.ctucx.network:$CGIT_REPO_URL
+clone-url=http://cgit.ctu.cx/$CGIT_REPO_URL git@wanderduene.ctu.cx:$CGIT_REPO_URL
 
 enable-commit-graph=1
 
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
@@ -2,7 +2,7 @@
 
 - name: Install cgit
   apk:
-   name: cgit git  spawn-fcgi fcgiwrap
+   name: cgit git spawn-fcgi fcgiwrap py3-markdown py3-pygments
    state: present
    update_cache: yes