multi hosts in block/rescue

Hello,
We are writing a simple block/rescue playbook, where we see if a box is online and if its not we want to notify another box to this fact.
I apologize in advance but it look like another hosts parameters can not be defined in the rescue block, is there a way and i am a little dense?
Thanks

  • name: Get Device Status
    hosts: pi_server
    gather_facts: False

tasks:

  • name: Wait for system to become reachable
    block:
  • name: Wait wait_on_connection
    wait_for_connection:
    timeout: 10
  • name: Gather facts for first time
    setup:
    rescue:
  • name: there was a problem, lets notify another box
    hosts: another_device
    another_module_to_notify_a_device:
    msg: ‘I caught an error’

You want to use delegate_to

rescue:

  • name: there was a problem, lets notify another box
    another_module_to_notify_a_device:

msg: ‘I caught an error’
delegate_to: another_device