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.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/elevate/liquidtruth/tasks/mongodb.yml b/roles/elevate/liquidtruth/tasks/mongodb.yml
index 244d9849..8d5180ae 100644
--- a/roles/elevate/liquidtruth/tasks/mongodb.yml
+++ b/roles/elevate/liquidtruth/tasks/mongodb.yml
@@ -19,3 +19,16 @@
- mongo-tools
- python-pymongo
state: present
+
+# - name: check if admin user already exists
+# command: >
+# mongo --quiet -u root -p {{ liquidtruth_root_password }} --eval 'db.version()' admin
+# register: mongodb_root_user_check
+# changed_when: false
+# check_mode: no
+# ignore_errors: true
+# no_log: true
+
+# - name: initialize authorization
+# include_tasks: mongodb_authorization.yml
+# when: mongodb_root_user_check