ceph-ansible/roles/ceph-mon/tasks/check_mandatory_vars.yml

9 lines
390 B
YAML

---
- name: make sure monitor_interface or monitor_address or monitor_address_block is configured
fail:
msg: "Either monitor_interface, monitor_address, or monitor_address_block must be configured. Interface for the monitor to listen on or IP address of that interface"
when:
- monitor_interface == 'interface'
- monitor_address == '0.0.0.0'
- not monitor_address_block