On Tuesday, 8 January 2019 23:48:16 CET Rama wrote:
> Hi,
> 
> Enclosed the var and made PB as below and resulted FAILED output.
> 
> PB:
> ---
> - hosts: localhost
>   connection: local
>   gather_facts: no
>   tasks:
>    - name: ILO Facts
>      hpilo_facts:
>       host: 10.20.64.51
>       login: XXXXXX
>       password: XXXXXX
>      delegate_to: localhost
> 
>    - debug:
>       var: "{{ hw_health.storage['Controller on System 
> Board']['logical_drives'][0]['physical_drives']  | selectattr('status', 
> 'equalto', 'CRITICAL') | list }}"

var: takes a variable not the content, change your var: to msg:


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3008905.SmHLR2bRnS%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to