Files
awx/tools/docker-compose-minikube/minikube/tasks/preflight.yml
2021-07-21 10:39:51 -04:00

13 lines
455 B
YAML

---
- name: Check if Kubernetes python module is installed
shell: pip freeze | grep openshift
register: _pip_openshift
ignore_errors: true
- name: Preflight check - require openshift python module
assert:
fail_msg: "The openshift python module was not found. You can either install it via 'pip install openshift' or using your distro package manager."
that:
- _pip_openshift.rc == 0
- "'openshift==' in _pip_openshift.stdout"