Maximum Failure Percentage - global setting

15 views
Skip to first unread message

Jonathan Nuñez Aguin

unread,
Nov 7, 2017, 6:25:20 AM11/7/17
to Ansible Project
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!

Kai Stian Olstad

unread,
Nov 7, 2017, 6:54:55 AM11/7/17
to ansible...@googlegroups.com
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

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages