# Maximum Failure Percentage - global setting

**URL:** <https://forum.ansible.com/t/maximum-failure-percentage-global-setting/25946>\
**Category:** Ansible Project\
**Created:** [November 7, 2017, 11:25am UTC](https://forum.ansible.com/t/maximum-failure-percentage-global-setting/25946 "2017-11-07T11:25:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Nunez\_Aguin](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan\_Nunez\_Aguin](https://forum.ansible.com/u/Jonathan_Nunez_Aguin)\
**Post date:** [November 7, 2017, 11:25am UTC](https://forum.ansible.com/t/maximum-failure-percentage-global-setting/25946/1 "2017-11-07T11:25:19Z")

</div>

Hello,

I have multiple plays where we need to fail when one of the host has a failure, behaviour that we can configure by using “max\_fail\_percentage: 0” but we need to add this setting in each play which is really verbose and prone to errors if the developer miss it in a new play. Is there a way of setting up “max\_fail\_percentage” in the Ansible CFG or globally?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [November 7, 2017, 11:54am UTC](https://forum.ansible.com/t/maximum-failure-percentage-global-setting/25946/2 "2017-11-07T11:54:38Z")

</div>

I don't think you can set max\_fail\_percentage, but you can set any\_errors\_fatal to true

[http://docs.ansible.com/ansible/latest/config.html#any-errors-fatal](http://docs.ansible.com/ansible/latest/config.html#any-errors-fatal)
