Ignoring failed commands
By default, Ansible stops executing tasks on a host when a task fails on that host. You can useignore_errorsto continue despite of the failure.
Theignore_errorsdirective only works when the task can run and returns a value of ‘failed’. It does not make Ansible ignore undefined variable errors, connection failures, execution issues (for example, missing packages), or syntax errors.