# how to stop ansible from ignoring syntax errors

**URL:** <https://forum.ansible.com/t/how-to-stop-ansible-from-ignoring-syntax-errors/36005>\
**Category:** Ansible Project\
**Created:** [November 18, 2021, 9:29am UTC](https://forum.ansible.com/t/how-to-stop-ansible-from-ignoring-syntax-errors/36005 "2021-11-18T09:29:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel\_Rau](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Post date:** [November 18, 2021, 9:29am UTC](https://forum.ansible.com/t/how-to-stop-ansible-from-ignoring-syntax-errors/36005/1 "2021-11-18T09:29:49Z")

</div>

Hi all,

is there a central knob to stop ansible from continuing after a syntax error?  
Also, it seems that ansible continues after failed tasks in included roles or included tasks.

How can I let ansible stop on all those errors?

Thanks, Axel

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [November 18, 2021, 9:35am UTC](https://forum.ansible.com/t/how-to-stop-ansible-from-ignoring-syntax-errors/36005/2 "2021-11-18T09:35:59Z")

</div>

> Hi all,
> 
> is there a central knob to stop ansible from continuing after a syntax error?  
> Also, it seems that ansible continues after failed tasks in included roles or included tasks.
> 
> How can I let ansible stop on all those errors?

Hello Axel,

can you give an example, please?

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
