diff --git a/roles/ceph-common/tasks/checks/check_mandatory_vars.yml b/roles/ceph-common/tasks/checks/check_mandatory_vars.yml index 9565383b4..c202d4404 100644 --- a/roles/ceph-common/tasks/checks/check_mandatory_vars.yml +++ b/roles/ceph-common/tasks/checks/check_mandatory_vars.yml @@ -33,8 +33,10 @@ tags: - package-install -- name: make sure monitor_interface is defined +- name: make sure monitor_interface or monitor_address is defined fail: - msg: "you must set monitor_interface" + msg: "you must set monitor_interface or monitor_address" when: - monitor_interface == 'interface' + - monitor_address == "0.0.0.0" + - mon_group_name in group_names