mirror of https://github.com/ceph/ceph-ansible.git
16 lines
675 B
YAML
16 lines
675 B
YAML
---
|
|
- name: Fail if ceph_nfs_rgw_access_key or ceph_nfs_rgw_secret_key are undefined (nfs standalone)
|
|
ansible.builtin.fail:
|
|
msg: "ceph_nfs_rgw_access_key and ceph_nfs_rgw_secret_key must be set if nfs_obj_gw is True"
|
|
when:
|
|
- nfs_obj_gw | bool
|
|
- groups.get(mon_group_name, []) | length == 0
|
|
- (ceph_nfs_rgw_access_key is undefined or ceph_nfs_rgw_secret_key is undefined)
|
|
|
|
- name: Fail on openSUSE Leap 15.x using distro packages
|
|
ansible.builtin.fail:
|
|
msg: "ceph-nfs packages are not available from openSUSE Leap 15.x repositories (ceph_origin = 'distro')"
|
|
when:
|
|
- ceph_origin == 'distro'
|
|
- ansible_facts['distribution'] == 'openSUSE Leap'
|