# ansible call handler with variable from a loop

**URL:** <https://forum.ansible.com/t/ansible-call-handler-with-variable-from-a-loop/33813>\
**Category:** Ansible Project\
**Created:** [September 15, 2020, 3:07pm UTC](https://forum.ansible.com/t/ansible-call-handler-with-variable-from-a-loop/33813 "2020-09-15T15:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dibe/32/9452_2.png) [@Dibe](https://forum.ansible.com/u/Dibe)\
**Post date:** [September 15, 2020, 3:07pm UTC](https://forum.ansible.com/t/ansible-call-handler-with-variable-from-a-loop/33813/1 "2020-09-15T15:07:44Z")

</div>

Hi all.

I have a wait \_for task that iterate over a list of hosts. Every time that one host of the list is reachable, i want to call an handler passing the host as argument, and repeat it for every host when become reachable. I don’t want to wait that all hosts are reachable. Is it possible?

thanks  
D.
