The issue is that you are making the test on the 'current' host, but
that is not mandated, you can use the data from any/all the hosts and
use a 'select' filter to create a list of hosts that pass that test ..
so if select(,,,)|length > 1 you have an 'any' host matching
condition.
--
I have a senario where I check for a condition on remote machines, if any
of them fails the condition, I'll create a file locally on the ansible
controller and move it to any machine that failed the condition.
Creating the file locally should only be done once, thus the command
contains the key