Hello,
Given the data below I would like to create a single task that will print the url or the filename without having to specify the hardware (PowerEdge_xxxxx) or the firmware (bios, idrac, etc.).
Any ideas would be very much appreciated.
Thanks,
Hank
Something like:
- name: Print firmfware info
debug: msg="item0 {{ item.0 }} item1 {{ item.1.url }}"
with_indexed_items: "{{firmware}}"
OR:
- name: Print firmfware info
debug: msg="item0 {{ item.0 }} item1 {{ item.1.url }}"
with_dict: "{{firmware}}"
---
firmware:
PowerEdge_730xd:
bios:
type: bios
url: [http://downloads.dell.com/FOLDER02868051M/1/BIOS_XR23Y_WN64_1.2.10.EXE](http://downloads.dell.com/FOLDER02868051M/1/BIOS_XR23Y_WN64_1.2.10.EXE)
filename: BIOS_XR23Y_WN64_1.2.10.EXE
target_version: 1.2.10
search: none
minimum_version: none
idrac:
type: idrac
url: [http://downloads.dell.com/FOLDER02881013M/1/iDRAC-with-Lifecycle-Controller_Firmware_FM1PC_WN64_2.10.10.10_A00.EXE](http://downloads.dell.com/FOLDER02881013M/1/iDRAC-with-Lifecycle-Controller_Firmware_FM1PC_WN64_2.10.10.10_A00.EXE)` `filename: iDRAC-with-Lifecycle-Controller_Firmware_FM1PC_WN64_2.10.10.10_A00.EXE` `target_version: 2.10.10.10` `search: none` `minimum_version: none` `raid:` `type: raid`
url: http://downloads.dell.com/FOLDER02864367M/2/SAS-RAID_Firmware_V43G1_WN64_25.2.2-0004_A03.EXE
filename: SAS-RAID_Firmware_V43G1_WN64_25.2.2-0004_A03.EXE
target_version: 25.2.2-0004
search: none
minimum_version: none
nic_intel1:
type: nic ```url: [http://downloads.dell.com/FOLDER02309982M/1/Network_Firmware_M26VT_WN64_15.5.0_A00.EXE](http://downloads.dell.com/FOLDER02309982M/1/Network_Firmware_M26VT_WN64_15.5.0_A00.EXE)
filename: Network_Firmware_M26VT_WN64_15.5.0_A00.EXE
target_version: 15.5.0
search: X520
minimum_version: none
nic_intel2:
type: nic
url: [http://downloads.dell.com/FOLDER02861870M/2/Network_Firmware_6FD9P_WN64_16.5.20_A00.EXE](http://downloads.dell.com/FOLDER02861870M/2/Network_Firmware_6FD9P_WN64_16.5.20_A00.EXE)` `filename: Network_Firmware_6FD9P_WN64_16.5.20_A00.EXE` `target_version: 16.5.20` `search: X520` `minimum_version: 15.5.0` `PowerEdge_720xd:` `bios:` `type: bios` `url: [http://downloads.dell.com/FOLDER02797465M/1/BIOS_MKCTM_WN64_2.5.2.EXE](http://downloads.dell.com/FOLDER02797465M/1/BIOS_MKCTM_WN64_2.5.2.EXE)` `filename: BIOS_MKCTM_WN64_2.5.2.EXE` `target_version: 2.5.2` `search: none` `minimum_version: none` ``nic:`` ``type: nic`` ``url: [http://downloads.dell.com/FOLDER02861870M/2/Network_Firmware_6FD9P_WN64_16.5.20_A00.EXE](http://downloads.dell.com/FOLDER02861870M/2/Network_Firmware_6FD9P_WN64_16.5.20_A00.EXE)`` ``filename: Network_Firmware_6FD9P_WN64_16.5.20_A00.EXE`` ``target_version: 16.5.20`` ``search: X520`` ``minimum_version: 15.5.0`` `PowerEdge_620xd:` `bios:` `type: bios`
url: http://downloads.dell.com/FOLDER02797465M/1/BIOS_MKCTM_WN64_2.5.2.EXE
filename: BIOS_MKCTM_WN64_2.5.2.EXE
target_version: 2.5.2
search: none
minimum_version: none
raid:
type: raid
url: http://downloads.dell.com/FOLDER02864367M/2/SAS-RAID_Firmware_V43G1_WN64_25.2.2-0004_A03.EXE
filename: SAS-RAID_Firmware_V43G1_WN64_25.2.2-0004_A03.EXE
target_version: 25.2.2-0004
search: none
minimum_version: none`