mirror of https://github.com/ceph/ceph-ansible.git
20 lines
654 B
YAML
20 lines
654 B
YAML
- name: validate ceph_origin
|
|
fail:
|
|
msg: "ceph_origin must be either 'repository', 'distro' or 'local'"
|
|
when: ceph_origin not in ['repository', 'distro', 'local']
|
|
|
|
- name: validate ceph_repository
|
|
fail:
|
|
msg: "ceph_repository must be either 'community', 'rhcs', 'obs', 'dev', 'custom' or 'uca'"
|
|
when:
|
|
- ceph_origin == 'repository'
|
|
- ceph_repository not in ['community', 'rhcs', 'obs', 'dev', 'custom', 'uca']
|
|
|
|
- name: validate ceph_repository_community
|
|
fail:
|
|
msg: "ceph_stable_release must be 'quincy'"
|
|
when:
|
|
- ceph_origin == 'repository'
|
|
- ceph_repository == 'community'
|
|
- ceph_stable_release not in ['quincy']
|