aboutsummaryrefslogtreecommitdiff
path: root/roles/cosmos/tasks/main.yml
blob: dd59094f747d633c290caa6ac6dd1c43ea64caa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
- 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

    - name: Provision cosmos CGit instance
      ansible.builtin.include_role:
        name: cgit
      tags:
        cgit
      vars:
        instance: "cosmos"
        domain: "git.cosmos.party"
        root_title: "Cosmos Party"
        root_desc: "Here you can find all our git repositories"
        scan_path: "/var/lib/git/repositories/"

    - name: Provision community umurmur instance
      ansible.builtin.include_role:
        name: umurmur
      vars:
        certificate: "/etc/ssl/cosmos.party.fullchain.pem"
        private_key: "/etc/ssl/private/cosmos.party.key"
        welcometext: "Добро пожаловать!"
        channels:
          - name: "Root"
            description: "The Root of all channels"
            noenter: true
          - name: "Lobby"
            parent: "Root"
            description: "Lobby channel"
          - name: "Red team"
            parent: "Lobby"
            description: "The Red team channel"
          - name: "Blue team"
            parent: "Lobby"
            description: "The Blue team channel"
        default_channel: "Lobby"
        channel_links:
          - source: "Lobby"
            destination: "Red team"
          - source: "Lobby"
            destination: "Blue team"

  tags:
    - cosmos