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.
-- ---------- Brian Coca -- 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/CACVha7f2sNzdJKRfGVxifZYwC8BcLHXZNg9o0oFKMSLcGEcpug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.