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