]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Revert "ceph-validate: check devices from lvm_volumes"
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 6 Jul 2021 15:52:15 +0000 (11:52 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 7 Jul 2021 15:19:35 +0000 (17:19 +0200)
This reverts commit 3557497336338ab2227bcb7c2373047291b4bc73.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-validate/tasks/check_devices.yml
roles/ceph-validate/tasks/main.yml

index 930f45431b041c58cc7244b24bca2c70f2ff8594..5f439ac6a4d469b8cfd4da4e33ff33fd11be693d 100644 (file)
@@ -83,7 +83,7 @@
         unit: MiB
       register: devices_parted
       failed_when: False
-      with_items: "{{ devices | default([]) }}"
+      with_items: "{{ devices }}"
 
     - name: fail if one of the devices is not a device
       fail:
index ae989b0fc97fc9bc6b2ba896d2ed468eadca8310..51c2fac28f728335bb80f3f75dcb3d051a1fd8db 100644 (file)
   when:
     - osd_group_name in group_names
     - not osd_auto_discovery | default(False) | bool
+    - devices|default([])|length > 0
 
 - name: include check_eth_mon.yml
   include_tasks: check_eth_mon.yml