xoxys.mongodb/tasks/main.yml

17 lines
421 B
YAML
Raw Normal View History

2017-07-14 21:05:30 +00:00
---
2017-12-22 12:00:38 +00:00
- include_tasks: install.yml
2018-07-07 21:29:34 +00:00
- include_tasks: storage.yml
when: mongodb_lvm_enabled
2018-07-07 21:20:00 +00:00
- include_tasks: config.yml
- name: Check where admin user already exists
command: |
mongo --quiet -u {{ mongodb_user_admin_name }} -p {{ mongodb_user_admin_password }} --eval 'db.version()' admin
register: __mongodb_admin_check
changed_when: False
2018-07-07 16:53:03 +00:00
- include_tasks: auth.yml
2018-07-07 18:15:17 +00:00
when: not __mongodb_admin_check.rc == 0