Hey @Nisha, you can use the block/rescue feature of ansible here. You can wrap your roles inside them. something like this:
- block:
- name: task 1
... # something bad may happen here
- name: task N
rescue:
- assert: # we need a dummy task here to prevent our host from being failed
that: ansible_failed_task is defined