]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osd: skip some set_fact when osd_scenario=lvm 2168/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Nov 2017 14:30:08 +0000 (15:30 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 13 Nov 2017 15:35:25 +0000 (16:35 +0100)
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>
(cherry picked from commit 238754a8446f5ae3d2eefea9420e6d61f4426481)

roles/ceph-defaults/tasks/facts.yml

index 8d2e5c606ecadbb87749e0fa14b8837c88fb995c..77cb72846a99a514ffcf4f61d91ac6586083535c 100644 (file)
   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:
   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:
   when:
     - inventory_hostname in groups.get(osd_group_name, [])
     - not osd_auto_discovery|default(False)
+    - osd_scenario != 'lvm'