2022-01-13 16:29:35 +00:00

29 lines
751 B
YAML

# 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: 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]