mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-06-30 21:52:12 +02:00
10 lines
273 B
YAML
10 lines
273 B
YAML
|
---
|
||
|
- name: MongoDB Process Check
|
||
|
shell: pgrep mongod | wc -l
|
||
|
register: command_result
|
||
|
tags: [mongodb]
|
||
|
|
||
|
- name: Run MongoDB
|
||
|
shell: "mongod --replSet=bigchain-rs --logpath {{ mongodb_log_path }}/mongod.log &"
|
||
|
when: command_result.stdout| int != 1
|
||
|
tags: [mongodb]
|