summaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit/tasks/main.yml')
-rw-r--r--roles/cgit/tasks/main.yml46
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: