# task not running further after "Failed to connect to the host via ssh"

**URL:** <https://forum.ansible.com/t/task-not-running-further-after-failed-to-connect-to-the-host-via-ssh/24991>\
**Category:** Ansible Project\
**Created:** [July 14, 2017, 10:01pm UTC](https://forum.ansible.com/t/task-not-running-further-after-failed-to-connect-to-the-host-via-ssh/24991 "2017-07-14T22:01:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayaraj\_Balakrishn](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@Vijayaraj\_Balakrishn](https://forum.ansible.com/u/Vijayaraj_Balakrishn)\
**Post date:** [July 14, 2017, 10:01pm UTC](https://forum.ansible.com/t/task-not-running-further-after-failed-to-connect-to-the-host-via-ssh/24991/1 "2017-07-14T22:01:31Z")

</div>

hello,  
I am running task on multiple nodes and task fails, when any one of the node is unreachable.

Any idea, how to overcome it.

here is my Ansible Script.

- hosts:
- all  
name: Search APPID  
gather\_facts: false  
serial: 1  
become: no  
any\_errors\_fatal: false

tasks:

- set\_fact: env\_var=“{{ lookup(‘env’,‘HOME’) }}”

- command: python “{{env\_var}}/script/searchapp.py”  
register: ps

- debug: var=ps

- hosts:

- localhost  
name: Merge APPID  
gather\_facts: false  
serial: 1  
become: no

---

<div class="post-metadata">

**Author:** ![Vijayaraj\_Balakrishn](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@Vijayaraj\_Balakrishn](https://forum.ansible.com/u/Vijayaraj_Balakrishn)\
**Post date:** [July 14, 2017, 10:02pm UTC](https://forum.ansible.com/t/task-not-running-further-after-failed-to-connect-to-the-host-via-ssh/24991/2 "2017-07-14T22:02:06Z")

</div>

I am using ansible 2.1.0.0
