Ansible stdout format - firmware

Hi All,

I am trying gather firmware from dell servers able to achieve it but the output need to formated.Is it possible to remove curly braces and double quotes from output?

Could you someone help on it?

Playbook:

As per ur output data in test variable is a list. So if you are looking for printing individual entry in output, need to loop it with with_items and print each entry in list.

Try
- debug:
      msg: "{{ item }}"
   with_items: “{{ test }}”

Thanks and Regards
Mani Mohan

Hi,

Thanks. My requirement to remove curly braces and double quotes no need to print individual list.

I am expecting something like below.

Expectation:

ok: [192.168.1.108] => {
  
            Name: Intel(R) Ethernet Converged Network Adapter X710 - F8:F2:1E:1F:3E:E0,
            Version: 19.0.12
        
            Name: Intel(R) Ethernet Converged Network Adapter X710 - F8:F2:1E:1F:3E:E2,
            Version: 19.0.12
      
            Name: Intel(R) Gigabit 4P X710/I350 rNDC - 24:6E:96:D1:77:58,
            Version: 19.0.12
       
            Name: BP14G+EXP 0:1,
            Version: 2.46
       
            Name: QLogic QLE2692 16Gb FC Adapter - 21000024FF1EFD60,
            Version: 15.00.00
     
}

Regards
Kumaresan