summaryrefslogtreecommitdiff
path: root/roles/elevate/liquidtruth/tasks/mongodb.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/elevate/liquidtruth/tasks/mongodb.yml')
-rw-r--r--roles/elevate/liquidtruth/tasks/mongodb.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/elevate/liquidtruth/tasks/mongodb.yml b/roles/elevate/liquidtruth/tasks/mongodb.yml
new file mode 100644
index 00000000..244d9849
--- /dev/null
+++ b/roles/elevate/liquidtruth/tasks/mongodb.yml
@@ -0,0 +1,21 @@
+---
+- name: create mongodb data directory
+ file:
+ name: /srv/mongodb
+ state: directory
+
+- name: create bind mount for mongodb
+ mount:
+ src: /srv/mongodb
+ path: /var/lib/mongodb
+ fstype: none
+ opts: bind,defaults
+ state: mounted
+
+- name: install mongodb server
+ apt:
+ name:
+ - mongodb
+ - mongo-tools
+ - python-pymongo
+ state: present