ansible-ceph/roles/ceph-validate/tasks/check_repository.yml
anpivkin a507c88e6f kek
2026-04-15 14:38:56 +03:00

20 lines
691 B
YAML

- name: Validate ceph_origin
ansible.builtin.fail:
msg: "ceph_origin must be either 'repository', 'distro' or 'local'"
when: ceph_origin not in ['repository', 'distro', 'local']
- name: Validate ceph_repository
ansible.builtin.fail:
msg: "ceph_repository must be either 'community', 'obs', 'dev', 'custom' or 'uca'"
when:
- ceph_origin == 'repository'
- ceph_repository not in ['community', 'obs', 'dev', 'custom', 'uca']
#- name: Validate ceph_repository_community
#ansible.builtin.fail:
#msg: "ceph_stable_release must be 'squid'"
#when:
#- ceph_origin == 'repository'
#- ceph_repository == 'community'
#- ceph_stable_release not in ['squid']