From: Sébastien Han Date: Thu, 19 Jan 2017 13:35:00 +0000 (+0100) Subject: mon: fix mds pool creation X-Git-Tag: v2.1.4~1^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bc5a73df5113c6e7f1cc80df8dfb01eed7991a20;p=ceph-ansible.git mon: fix mds pool creation 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 (cherry picked from commit 90648e7518fdf858a0af6c8b0cae7160bb6ddf2c) --- 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: