From 238754a8446f5ae3d2eefea9420e6d61f4426481 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 7 Nov 2017 15:30:08 +0100 Subject: [PATCH] osd: skip some set_fact when osd_scenario=lvm these tasks are not needed when using `osd_scenario: lvm` Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1509230 Signed-off-by: Guillaume Abrioux --- roles/ceph-defaults/tasks/facts.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/ceph-defaults/tasks/facts.yml b/roles/ceph-defaults/tasks/facts.yml index 524b79672..ee6cfaa80 100644 --- a/roles/ceph-defaults/tasks/facts.yml +++ b/roles/ceph-defaults/tasks/facts.yml @@ -133,6 +133,7 @@ when: - inventory_hostname in groups.get(osd_group_name, []) - not osd_auto_discovery|default(False) + - osd_scenario != 'lvm' - name: set_fact build devices from resolved symlinks set_fact: @@ -141,6 +142,7 @@ when: - inventory_hostname in groups.get(osd_group_name, []) - not osd_auto_discovery|default(False) + - osd_scenario != 'lvm' - name: set_fact build final devices list set_fact: @@ -148,3 +150,4 @@ when: - inventory_hostname in groups.get(osd_group_name, []) - not osd_auto_discovery|default(False) + - osd_scenario != 'lvm'