The solution seems to be easy actually:
when: ansible_play_hosts | map('extract', hostvars, 'return_task') | list | 
selectattr('failed') | list is any

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/797a89d1-c5c3-4375-868b-854e3f8461d0n%40googlegroups.com.

Reply via email to