diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-04 07:51:05 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-11 18:36:50 -0700 |
| commit | 0e702b68e777ed1f2273fcb5fa877b8fd3143188 (patch) | |
| tree | be920555ee969ba1903a69894721ae5b5aea3759 /roles/obsd_cgit/tasks/main.yml | |
| parent | Remove extra / location in httpd cgit conf and remove server header (diff) | |
| download | site-configs-0e702b68e777ed1f2273fcb5fa877b8fd3143188.zip | |
Enable more cgit features, add markdown renderer, and extra head
- I went through `man cgitrc` and enabled a bunch of the features
that are off by default because they look fun.
- Add `lowdown` to chroot to enable rendering markdown in the web view.
- The extra head.html file ensures mobile devices don't try to render it
in desktop view. I mean...it still looks awful on mobile...but it's
kinda better than before.
Diffstat (limited to 'roles/obsd_cgit/tasks/main.yml')
| -rw-r--r-- | roles/obsd_cgit/tasks/main.yml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/roles/obsd_cgit/tasks/main.yml b/roles/obsd_cgit/tasks/main.yml index 3bb2593..3971803 100644 --- a/roles/obsd_cgit/tasks/main.yml +++ b/roles/obsd_cgit/tasks/main.yml @@ -12,14 +12,6 @@ mode: "0644" notify: restart httpd -- name: Deploy cgitrc - ansible.builtin.template: - src: cgitrc.j2 - dest: /var/www/conf/cgitrc - owner: www - group: daemon - mode: "0644" - - name: Create cgit cache directory ansible.builtin.file: path: "{{ cgit_cache_dir }}" @@ -27,3 +19,22 @@ owner: www group: daemon mode: "0755" + +- name: Set up lowdown markdown renderer in chroot + ansible.builtin.include_tasks: lowdown.yml + +- name: Copy extra html head file into chroot + ansible.builtin.copy: + src: head.html + dest: /var/www/cgit/ + owner: root + group: daemon + mode: "0644" + +- name: Deploy cgitrc configuration + ansible.builtin.template: + src: cgitrc.j2 + dest: /var/www/conf/cgitrc + owner: www + group: daemon + mode: "0644" |