From 756dc388bedf97b68449e919a6730788f730c7b8 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 16 Jul 2026 14:39:19 +0200 Subject: 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 --- roles/cgit/handlers/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'roles/cgit/handlers') 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 -- cgit v1.2.3