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

29 lines
751 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 Present
command: docker
register: result
ignore_errors: True
tags: [docker]
- name: Error! Docker not found
fail:
msg: "Docker not installed on MacOSX, please visit: https://docs.docker.com/docker-for-mac/install/"
when: result is failed
tags: [docker]
- name: Check if Docker is running
command: docker info
register: info_result
ignore_errors: True
tags: [docker]
- name: Error! Docker not running
fail:
msg: "Docker not running."
when: info_result is failed
tags: [docker]