From 62428777b7862720c1441e126a26f53c6076ba94 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 22 Oct 2026 23:20:17 +0300 Subject: feat: add cosmos site --- roles/cosmos/tasks/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/cosmos/tasks/main.yml (limited to 'roles/cosmos/tasks') diff --git a/roles/cosmos/tasks/main.yml b/roles/cosmos/tasks/main.yml new file mode 100644 index 0000000..c44505e --- /dev/null +++ b/roles/cosmos/tasks/main.yml @@ -0,0 +1,22 @@ +--- +- block: + - name: Ensure cosmos web root exists + ansible.builtin.file: + path: /srv/http/cosmos.party + state: directory + owner: cmmm + group: www-data + mode: '0775' + + - name: Deploy cosmos nginx site configuration + ansible.builtin.template: + src: nginx.conf.j2 + dest: /etc/nginx/http.d/cosmos.conf + owner: root + group: root + mode: '0444' + validate: nginx-validate %s /etc/nginx/http.d/cosmos.conf + notify: Reload nginx + + tags: + - cosmos -- cgit v1.3.1