# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 --- - name: Install pymongo pip: name: pymongo state: present tags: [planetmint] - name: Install Planetmint shell: "python3.6 -m pip install -e /opt/stack/planetmint/.[dev] --ignore-installed pyyaml" register: install_bdb failed_when: "'FAILED' in install_bdb.stderr or install_bdb.rc != 0" tags: [planetmint] - name: MongoDB Process Check shell: pgrep mongod | wc -l register: mdb_pchk tags: [planetmint] - name: Tendermint Process Check shell: pgrep tendermint | wc -l register: tm_pchk tags: [planetmint] - name: Planetmint Process Check shell: pgrep planetmint | wc -l register: bdb_pchk tags: [planetmint] - name: Start Planetmint shell: nohup planetmint -l DEBUG start > /tmp/planetmint_log_$(date +%Y%m%d_%H%M%S) 2>&1 & environment: PLANETMINT_DATABASE_BACKEND: "localmongodb" PLANETMINT_DATABASE_HOST: "127.0.0.1" PLANETMINT_DATABASE_PORT: "27017" PLANETMINT_SERVER_BIND: "0.0.0.0:9984" PLANETMINT_WSSERVER_HOST: "0.0.0.0" PLANETMINT_WSSERVER_PORT: "9985" PLANETMINT_TENDERMINT_HOST: "127.0.0.1" PLANETMINT_TENDERMINT_PORT: "26657" when: mdb_pchk.stdout| int != 0 and bdb_pchk.stdout| int == 0 and tm_pchk.stdout| int != 0 tags: [planetmint]