summaryrefslogtreecommitdiffstats
path: root/roles/cgit/handlers
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-16 14:39:19 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-16 17:02:52 +0200
commit756dc388bedf97b68449e919a6730788f730c7b8 (patch)
treece823916a242ea9d44194bbaf6da04d1596b935d /roles/cgit/handlers
parentf79d1d829cdafebb5dbcd658d31ae89f2e53ce73 (diff)
Refactor pve cgit to use generic proxy
This is refactoring the PoC for deploying cgit on pve, to now move to a more standard deployment with dedicated agnonstic proxy role/container
Diffstat (limited to 'roles/cgit/handlers')
-rw-r--r--roles/cgit/handlers/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/cgit/handlers/main.yml b/roles/cgit/handlers/main.yml
index d4481590..52ffdbee 100644
--- a/roles/cgit/handlers/main.yml
+++ b/roles/cgit/handlers/main.yml
@@ -1,6 +1,20 @@
---
+- name: "Restart lighttpd"
+ become: true
+ ansible.builtin.service:
+ name: lighttpd
+ state: restarted
+
+- name: "Restart caddy"
+ become: true
+ delegate_to: "{{ cgit_proxy_host }}"
+ ansible.builtin.service:
+ name: caddy
+ state: restarted
+
- name: "Restart nginx"
become: true
+ delegate_to: "{{ cgit_proxy_host }}"
ansible.builtin.service:
name: nginx
state: restarted