validate_facts.yml 735 B

1234567891011121314
  1. - name: validate Dockerhub registry settings
  2. fail: msg="To use the dockerhub registry, you must provide the ansible_service_broker_registry_user. ansible_service_broker_registry_password, and ansible_service_broker_registry_organization parameters"
  3. when:
  4. - ansible_service_broker_registry_type == 'dockerhub'
  5. - not (ansible_service_broker_registry_user and
  6. ansible_service_broker_registry_password and
  7. ansible_service_broker_registry_organization)
  8. - name: validate RHCC registry settings
  9. fail: msg="To use the Red Hat Container Catalog registry, you must provide the ansible_service_broker_registry_url"
  10. when:
  11. - ansible_service_broker_registry_type == 'rhcc'
  12. - not ansible_service_broker_registry_url