David Dashyan 9e99c024d3
Replace headers (#2683)
Signed-off-by: David Dashyan <mail@davie.li>
2020-04-06 11:52:18 +02:00

24 lines
709 B
YAML

# Copyright © 2020 Interplanetary Database Association e.V.,
# BigchainDB 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: Check if Docker is running
command: docker info
register: info_result
ignore_errors: True
when: stack_type|lower == "docker" or stack_type|lower == "cloud"
tags: [tendermint]
- name: Error! Docker not running
fail:
msg: "Docker not running."
when: (stack_type|lower == "docker" or stack_type|lower == "cloud") and info_result is failed
tags: [tendermint]
- import_tasks: start.yml
when: action|lower == 'start'
- import_tasks: stop.yml
when: action|lower == 'stop'