---
- name: Create project namespace
  shell: oc new-project {{ namespace }} --description="EnMasse Infrastructure"
  register: namespace_exists
  failed_when: namespace_exists.stderr != '' and 'already exists' not in namespace_exists.stderr
  changed_when: namespace_exists.rc == 0

---
- name: Create project namespace
  shell: oc new-project {{ namespace }} --description="EnMasse Infrastructure"
  register: namespace_exists
  failed_when: namespace_exists.stderr != '' and 'already exists' not in namespace_exists.stderr
  changed_when: namespace_exists.rc == 0
- name: Select project namespace
  shell: oc project {{ namespace }}

Make sure project namespace is selected in the event it already exists
Make sure project namespace is selected in the event it already exists
