Prasanth T
Prasanth T

Reputation: 11

How to skip failures and continue with run when playing multiple ansible playbooks at once?

I am running multiple ansible playbooks for test automation in one of my projects. The problem is, test (containing multiple playbooks) aborts if even one task (in one playbook) get failed.

Is there any way to overcome this issue?

Upvotes: 1

Views: 2793

Answers (1)

udondan
udondan

Reputation: 60059

You can set ignore_errors: yes. This can be set for certain tasks or the whole playbook.

- hosts: all
  ignore_errors: yes
  roles: ...

Upvotes: 1

Related Questions