aboutsummaryrefslogtreecommitdiff
path: root/roles/cosmos/tasks/main.yml
blob: c44505e2ac123dde8c8698ccec2f175416c3b893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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