- 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']