Workaround Minikube issue on MacOS and enable preflights

This commit is contained in:
Marcelo Moreira de Mello
2021-07-19 15:19:02 -04:00
parent c073583663
commit 7e46499e18
3 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
---
- 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"