From: Sébastien Han Date: Mon, 21 Mar 2016 15:00:58 +0000 (+0100) Subject: ceph-osd: fix activate for osd on partitions X-Git-Tag: v1.0.3~18^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F637%2Fhead;p=ceph-ansible.git ceph-osd: fix activate for osd on partitions Since we want to activate the OSD when it's a partition we are looking for a return code that is equal to 0 which means the device is a partition. closes: #636 Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index b9b7c1f02..0ee388b5c 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -35,7 +35,7 @@ failed_when: false when: not item.0.get("skipped") and - item.0.get("rc", 0) != 0 and + item.0.get("rc", 0) == 0 and not osd_auto_discovery - include: osd_fragment.yml