summaryrefslogtreecommitdiff
path: root/roles/elevate/liquid-truth/tasks/main.yml
blob: 7f4749aec95be24337452253595554d5a41970b9 (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
---
- name: create logical volume for /srv
  lvol:
    vg: "{{ host_name }}"
    lv: "srv"
    size: "{{ liquid_truth_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 nginx
  import_tasks: nginx.yml