summaryrefslogtreecommitdiff
path: root/roles/elevate/liquidtruth/tasks/main.yml
blob: 4cb50dc92c704bc3f0d533775908a9380679c17c (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
34
35
36
37
38
39
40
41
42
---
- name: create logical volume for /srv
  lvol:
    vg: "{{ host_name }}"
    lv: "srv"
    size: "{{ liquidtruth_srv_disk_size }}"

- name: create filesystem
  filesystem:
    fstype: xfs
    dev: "/dev/mapper/{{ host_name | replace('-', '--') }}-srv"

- name: mount filesytem
  mount:
    src: "/dev/mapper/{{ host_name | replace('-', '--') }}-srv"
    path: /srv
    fstype: xfs
    state: mounted

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

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

- name: configure nginx vhost
  import_role:
    name: nginx/vhost
  vars:
    nginx_vhost:
      name: liquidtruth
      template: generic-proxy-no-buffering-with-acme
      acme: true
      hostnames: "{{ liquidtruth_hostnames }}"
      proxy_pass: "http://127.0.0.1:8080"

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