On Monday, 27 August 2018 21.59.10 CEST Ramu wrote:
> Thanks Brian and Todd.
> But the list will still have all other attributes. I just want to know the
> items for which the test is failed.

Just add the map filter

{{ output.results|selectattr('failed', 'equalto', True) | map(attribute='item') 
| list }}


-- 
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/5358565.VTSCIDmraK%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to