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 <gabrioux@redhat.com>
pull/2144/head
Guillaume Abrioux 2017-11-07 15:30:08 +01:00
parent ef9635ca9d
commit 238754a844
1 changed files with 3 additions and 0 deletions

View File

@ -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'