aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-09 16:56:01 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:36:51 -0700
commit99f42a5069aa6e3b8ee16a2ab9d3ae2568bf537c (patch)
tree68f4c68edb961634f03cde7b85a85bbedf80c695
parentAdd a crontab entry to renew the git.eugenetriguba.com cert (diff)
downloadsite-configs-99f42a5069aa6e3b8ee16a2ab9d3ae2568bf537c.zip
Remove lowdown from host after building static binary into chroot
-rw-r--r--roles/obsd_cgit/tasks/markdown.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/obsd_cgit/tasks/markdown.yml b/roles/obsd_cgit/tasks/markdown.yml
index c4cc6b9..4700df8 100644
--- a/roles/obsd_cgit/tasks/markdown.yml
+++ b/roles/obsd_cgit/tasks/markdown.yml
@@ -1,7 +1,13 @@
+- name: lowdown exists # noqa: name[casing]
+ ansible.builtin.stat:
+ path: /var/www/bin/lowdown
+ register: obsd_cgit_ld_bin
+
- name: Install lowdown package
ansible.builtin.package:
name: lowdown
state: present
+ when: not obsd_cgit_ld_bin.stat.exists
- name: Copy convert-markdown.c into /tmp
ansible.builtin.copy:
@@ -40,3 +46,8 @@
owner: root
group: daemon
mode: "0755"
+
+- name: Remove lowdown package
+ ansible.builtin.package:
+ name: lowdown
+ state: absent