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