]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: fix mds pool creation
authorSébastien Han <seb@redhat.com>
Thu, 19 Jan 2017 13:35:00 +0000 (14:35 +0100)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 23 Jan 2017 16:18:42 +0000 (10:18 -0600)
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 <seb@redhat.com>
(cherry picked from commit 90648e7518fdf858a0af6c8b0cae7160bb6ddf2c)

roles/ceph-mon/tasks/main.yml

index 217494eaa2862dbbb7950f743b9546c3c2db3e48..cf3d1f40fb44e050cd64849a6ad7548183b68f2b 100644 (file)
@@ -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: