ansible-ceph/roles/ceph-validate/tasks/check_pools.yml
2026-04-06 07:08:17 +03:00

11 lines
382 B
YAML

---
- name: Fail if target_size_ratio is not set when pg_autoscale_mode is True
ansible.builtin.fail:
msg: "You must set a target_size_ratio value on following pool: {{ item.name }}."
with_items:
- "{{ cephfs_pools | default([]) }}"
- "{{ pools | default([]) }}"
when:
- item.pg_autoscale_mode | default(False) | bool
- item.target_size_ratio is undefined