Fix installer for oc 4.3

This commit is contained in:
Shane McDonald
2020-05-06 11:37:08 -04:00
parent 3aa6e8a457
commit a461df0e4d
2 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,12 @@
---
- name: Determine version of oc
shell: oc version | sed -n 's/oc v//p'
register: oc_version
- name: Use correct cli option for kubeconfig
set_fact:
oc_kubeconfig_option: "{{ '--kubeconfig' if oc_version.stdout is version('3.11', '>=') else '--config' }}"
- include_vars: openshift.yml
- name: Set kubernetes_namespace