summaryrefslogtreecommitdiff
path: root/roles/elevate/liquidtruth/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-06-09 22:15:10 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-06-09 22:15:10 +0200
commite8631202bb490dde9e245bc668ee4ec8fcc35362 (patch)
treeb3223626c9f3338402a43d04a61b172265aa20ca /roles/elevate/liquidtruth/tasks/main.yml
parentliquid truth: mongodb + nginx (diff)
liquid-truth vs liquidtruth
Diffstat (limited to 'roles/elevate/liquidtruth/tasks/main.yml')
-rw-r--r--roles/elevate/liquidtruth/tasks/main.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/elevate/liquidtruth/tasks/main.yml b/roles/elevate/liquidtruth/tasks/main.yml
new file mode 100644
index 00000000..97eee759
--- /dev/null
+++ b/roles/elevate/liquidtruth/tasks/main.yml
@@ -0,0 +1,24 @@
+---
+- 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 nginx
+ import_tasks: nginx.yml