From 90648e7518fdf858a0af6c8b0cae7160bb6ddf2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 19 Jan 2017 14:35:00 +0100 Subject: [PATCH] mon: fix mds pool creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is not enough to check for the mds to exists, it actually always does because we declare the variable. So we need to make sure that there is a mds host. Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index 217494eaa..cf3d1f40f 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -14,6 +14,7 @@ when: - not mon_containerized_deployment - groups[mds_group_name] is defined + - "{{ groups[mds_group_name]|length > 0 }}" - include: secure_cluster.yml when: