Update create_vd.yml
- raid_type
- idrac_info.system_info.VirtualDisk[my_idx6].Name == raid_vd_name
+ - name: Check physical disk is not Non-RAID
+ set_fact:
+ non_raid_disk_status: true
+ with_items: "{{ idrac_info.system_info.PhysicalDisk }}"
+ loop_control:
+ index_var: my_idx7
+ when:
+ - idrac_info.system_info.PhysicalDisk is defined
+ - non_raid_disk_key in idrac_info.system_info.PhysicalDisk[my_idx7].RaidStatus
+
- name: View existing storage details
dellemc.openmanage.dellemc_idrac_storage_volume:
idrac_ip: "{{ inventory_hostname }}"
when:
- raid_type
- not raid_vd_status
+ - not non_raid_disk_status
- name: Set drives details - RAID
set_fact:
when:
- raid_type
- not raid_vd_status
+ - not non_raid_disk_status
- idrac_volume_list.storage_status.Message.Controller[raid_controller_sensor].Enclosure[raid_enclosure_name].PhysicalDisk is defined
- block:
when:
- raid_type
- not raid_vd_status
+ - not non_raid_disk_status
- idrac_volume_list.storage_status.Message.Controller[raid_controller_sensor].Enclosure[raid_enclosure_name].PhysicalDisk is defined
rescue:
- name: Creating RAID VD failed
