glusterfs_registry.yml 674 B

123456789101112131415
  1. ---
  2. - import_tasks: glusterfs_registry_facts.yml
  3. - import_tasks: glusterfs_common.yml
  4. when:
  5. - glusterfs_nodes | default([]) | count > 0
  6. - "'glusterfs' not in groups or glusterfs_nodes != groups.glusterfs"
  7. - name: Check if GlusterFS registry volume exists
  8. command: "{{ glusterfs_heketi_client }} volume list"
  9. register: registry_volume
  10. - name: Create GlusterFS registry volume
  11. command: "{{ glusterfs_heketi_client }} volume create --size={{ openshift_hosted_registry_storage_volume_size | replace('Gi','') }} --name={{ openshift_hosted_registry_storage_glusterfs_path }}"
  12. when: "openshift_hosted_registry_storage_glusterfs_path not in registry_volume.stdout"