--- - name: delete router-metrics cluster role oc_obj: state: absent kind: clusterrole name: router-metrics # remove namespace - This will delete all the objects inside the namespace - name: Remove prometheus project oc_project: state: absent name: "{{ openshift_prometheus_namespace }}"