---
- name: Switch to default project
  command: oc project default

- name: Check to see if heketi secret is already created
  command: "oc get secrets"
  register: oc_secrets

- name: Check to see if storage class is already created
  command: "oc get storageclass"
  register: storage_class

- name: Remove storage class from OCP
  command: "oc delete storageclass crs-gluster"
  when: "'crs-gluster' in storage_class.stdout"
