summaryrefslogtreecommitdiffstats
path: root/roles/ansible_service_broker/tasks/validate_facts.yml
blob: a2345551b4905aae28a6af23e7a3936dd45dbb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: validate Dockerhub registry settings
  fail: msg="To use the dockerhub registry, you must provide the ansible_service_broker_registry_organization"
  when:
    - ansible_service_broker_registry_type == 'dockerhub'
    - not ansible_service_broker_registry_organization


- name: validate RHCC registry settings
  fail: msg="To use the Red Hat Container Catalog registry, you must provide the ansible_service_broker_registry_url"
  when:
    - ansible_service_broker_registry_type == 'rhcc'
    - not ansible_service_broker_registry_url