Fix order for invoking the hostpath storage task for registry
@@ -101,7 +101,3 @@
volume_mounts: "{{ openshift_hosted_registry_volumes }}"
edits: "{{ openshift_hosted_registry_edits }}"
force: "{{ True|bool in openshift_hosted_registry_force }}"
-
-- include_tasks: storage/hostpath.yml
- when:
- - openshift_hosted_registry_storage_kind | default(none) in ['hostpath']
@@ -3,6 +3,10 @@
when:
- openshift_hosted_registry_storage_kind | default(none) == 'glusterfs' or openshift_hosted_registry_storage_glusterfs_swap
+- include_tasks: storage/hostpath.yml
+ when:
+ - openshift_hosted_registry_storage_kind | default(none) in ['hostpath']
+
- openshift_hosted_registry_storage_kind | default(none) == 'nfs'
block: