main.yml 564 B

1234567891011121314151617
  1. - name: Ensure storageclass object
  2. oc_obj:
  3. kind: storageclass
  4. name: "{{ openshift_storageclass_name }}"
  5. content:
  6. path: /tmp/openshift_storageclass
  7. data:
  8. kind: StorageClass
  9. apiVersion: storage.k8s.io/v1beta1
  10. metadata:
  11. name: "{{ openshift_storageclass_name }}"
  12. annotations:
  13. storageclass.beta.kubernetes.io/is-default-class: "true"
  14. provisioner: "{{ openshift_storageclass_provisioner }}"
  15. parameters:
  16. type: "{{ openshift_storageclass_type }}"
  17. run_once: true