# wait\_for + mail with host down

**URL:** <https://forum.ansible.com/t/wait-for-mail-with-host-down/20886>\
**Category:** Ansible Project\
**Created:** [March 16, 2016, 10:40am UTC](https://forum.ansible.com/t/wait-for-mail-with-host-down/20886 "2016-03-16T10:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Paraschiv](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Post date:** [March 16, 2016, 10:40am UTC](https://forum.ansible.com/t/wait-for-mail-with-host-down/20886/1 "2016-03-16T10:40:23Z")

</div>

Hi all,

I would like to receive an email with the hosts that don’t have port 22 (for example) open  
How can I do this ?

I though of something like this:
