Hi,

Edited the PB and it is

---
- hosts: localhost
  connection: local
  gather_facts: no
  tasks:
   - name: ILO Facts
     hpilo_facts:
      host: 10.20.64.51
      login: xxxxxxx
      password: xxxxxxx
     delegate_to: localhost

   - debug:
       var: hw_health.storage['Controller on System 
Board']['logical_drives']
       
       
       
Got output:
TASK [debug] 
**************************************************************************************************************************************
ok: [localhost] => {
    "hw_health.storage['Controller on System Board']['logical_drives']": [
        {
            "encryption_status": "Not Encrypted",
            "label": "01",
            "physical_drives": [
              {
                "configuration": "Configured",
                "version": "PD-0.7",
                "label": "device-1",
                "location": "1",
                "serial_number": "PWH12GVF",
                "status": "OK"
              },
              {
                "configuration": "Configured",
                "version": "PD-0.7",
                "label": "device-2",
                "location": "2",
                "serial_number": "PWH12GWF",
                "status": "OK"
              },
              {
                "configuration": "Configured",
                "version": "PD-0.7",
                "label": "device-3",
                "location": "3",
                "serial_number": "PWH12GXF",
                "status": "CRITICAL"
              }
            ],
            "status": "OK"
        }
    ]
}



On Wednesday, January 9, 2019 at 2:28:03 AM UTC+5:30, Kai Stian Olstad 
wrote:
>
> On Tuesday, 8 January 2019 21:35:54 CET Rama wrote: 
> > Hi, 
> > 
> > With this playbook we still getting msg output with first debug that i 
> > mentioned in my mail. It fails where second debug defined with 
> 'selectattr' 
>
> OK, then I understand where the output are from. 
>
> Your with_dict debug task make things more confusing, it would be better 
> to get the output of this task 
>
> - debug: 
>     var: hw_health.storage['Controller on System Board']['logical_drives'] 
>
>
> -- 
> Kai Stian Olstad 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fc426667-87a3-4011-8b29-35b932de41ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to