From 43975a7332795fb85a92101b8049c2854598b4e5 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 9 Nov 2017 10:26:24 +0100 Subject: [PATCH] osd: avoid using non desired loop device in autodiscovery This will prevent ceph-ansible from using a loop device while it shouldn't in auto_discovery mode. Signed-off-by: Guillaume Abrioux --- roles/ceph-osd/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 773ced7ea..0fce26e3a 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -26,6 +26,7 @@ - osd_auto_discovery - ansible_devices is defined - item.value.removable == "0" + - item.value.sectors != "0" - item.value.partitions|count == 0 - item.value.holders|count == 0 - "'dm-' not in item.key"