ceph-common: make sure monitor_interface or monitor_address is defined

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1666/head
Andrew Schoen 2017-07-06 13:59:17 -05:00 committed by Guillaume Abrioux
parent 7029be70fa
commit 4e87c1f0f5
1 changed files with 4 additions and 2 deletions

View File

@ -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