From 298ba0bf0364df8b831644cb51f8869b32edd75a Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 16 Jan 2020 14:03:09 -0500 Subject: [PATCH] ceph-facts: set devices osd_auto_discovery on OSDs We only need to set the devices fact with osd_auto_discovery on OSD nodes. Signed-off-by: Dimitri Savineau --- roles/ceph-facts/tasks/facts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index a12e47e05..fdfc4f130 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -205,6 +205,7 @@ with_dict: "{{ ansible_devices }}" when: - osd_auto_discovery | default(False) | bool + - inventory_hostname in groups.get(osd_group_name, []) - ansible_devices is defined - item.value.removable == "0" - item.value.sectors != "0" -- 2.39.5