swift-registry-check.yml 951 B

123456789101112131415161718192021222324
  1. ---
  2. # add localhost to OSEv3 so we can access OSEv3 inventory variables
  3. - name: Add localhost to OSEv3
  4. add_host:
  5. hostname: 'localhost'
  6. groupname: 'OSEv3'
  7. - name: Check openshift_hosted_registry_storage_kind value
  8. assert:
  9. that: openshift_hosted_registry_storage_kind == 'object'
  10. msg: "openshift_use_swift_registry: openshift_hosted_registry_storage_kind must be set to object"
  11. - name: Check openshift_hosted_registry_storage_provider value
  12. assert:
  13. that: openshift_hosted_registry_storage_provider == 'swift'
  14. msg: "openshift_use_swift_registry: openshift_hosted_registry_storage_provider must be set to swift"
  15. - name: Check openshift_hosted_registry_storage_swift_container is set
  16. assert:
  17. that: openshift_hosted_registry_storage_swift_container is defined
  18. msg: "openshift_use_swift_registry: openshift_hosted_registry_storage_swift_container must be defined"
  19. - name: Clear inventory
  20. meta: refresh_inventory