run a task when a play gets skipped by all hosts

Hi all

I have a playbook that checks 2 servers for log entrys, below is what is expected when it runs correctly: (part of the playbook below)

You would need to check them both with something like(list in when is the same as logical AND)

when:
  - hostvars['10.*.0.137'].command_output.stdout | length > 0
  - hostvars['10.*.0.138'].command_output.stdout | length > 0