summaryrefslogtreecommitdiff
path: root/roles/elevate/liquidtruth/tasks/main.yml
blob: 9f1ef3adeafbeeccd302d3b8c3a540804c676d1a (plain) (blame)
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
---
- name: prepare storage volume for /srv
  vars:
    storage_volume: "{{ liquidtruth_storage | combine({'dest': '/srv'}) }}"
  include_role:
    name: "storage/{{ liquidtruth_storage.type }}/volume"

- name: install and configure mongodb
  import_tasks: mongodb.yml

- name: install and configure nodejs
  import_tasks: nodejs.yml

- name: configure nginx vhost
  vars:
    nginx_vhost:
      name: liquidtruth
      template: generic
      tls:
        certificate_provider: "{{ acme_client }}"
      hostnames: "{{ liquidtruth_hostnames }}"
      locations:
        '/':
          proxy_pass: "http://127.0.0.1:8080"
  include_role:
    name: nginx/vhost

- name: create app user
  user:
    name: "{{ liquidtruth_app_user }}"
    state: present
    append: yes
    shell: /bin/zsh