diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-17 15:40:22 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-17 15:40:22 +0200 |
| commit | 22988554510dd5d76df4037cebe8e6662f4dbc61 (patch) | |
| tree | 9e2994f0d87d8b88886e913882ee47ab133d210c /roles/cgit/tasks/main.yml | |
| parent | 92ba528a34337b59408e41b124aafc8946439feb (diff) | |
Refactor proxy setup on cgit to simplify setup
Diffstat (limited to 'roles/cgit/tasks/main.yml')
| -rw-r--r-- | roles/cgit/tasks/main.yml | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml index 17a5675b..c5eeea3b 100644 --- a/roles/cgit/tasks/main.yml +++ b/roles/cgit/tasks/main.yml @@ -52,52 +52,6 @@ mode: "0644" notify: "Restart lighttpd" -- name: "Deploy caddy vhost on proxy" - when: hostvars[cgit_proxy_host]['proxy_type'] == "caddy" - delegate_to: "{{ cgit_proxy_host }}" - block: - - name: "Ensure caddy sites directory exists" - become: true - ansible.builtin.file: - path: "/etc/caddy/sites" - state: directory - owner: "root" - group: "caddy" - mode: "0750" - - - name: "Deploy caddy vhost" - become: true - ansible.builtin.template: - src: "cgit.caddy.j2" - dest: "/etc/caddy/sites/{{ cgit_hostname }}.caddy" - owner: "root" - group: "caddy" - mode: "0640" - notify: "Restart caddy" - -- name: "Deploy nginx vhost on proxy" - when: hostvars[cgit_proxy_host]['proxy_type'] == "nginx" - delegate_to: "{{ cgit_proxy_host }}" - block: - - name: "Ensure nginx vhosts directory exists" - become: true - ansible.builtin.file: - path: "/etc/nginx/vhosts.d" - state: directory - owner: "root" - group: "root" - mode: "0755" - - - name: "Deploy nginx vhost" - become: true - ansible.builtin.template: - src: "cgit.nginx.conf.j2" - dest: "/etc/nginx/vhosts.d/{{ cgit_hostname }}.conf" - owner: "root" - group: "root" - mode: "0644" - notify: "Restart nginx" - - name: "Enable and start services" become: true ansible.builtin.service: |
