From: Andrew Schoen Date: Thu, 6 Jul 2017 18:59:17 +0000 (-0500) Subject: ceph-common: make sure monitor_interface or monitor_address is defined X-Git-Tag: v2.3.0rc2~2^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4e87c1f0f503c29fef734cf486047e9813dd96cf;p=ceph-ansible.git ceph-common: make sure monitor_interface or monitor_address is defined Signed-off-by: Andrew Schoen --- 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