From c7cae3b08c80fb2b0fcd32e777c61ba0eaa32c0a Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sun, 1 May 2016 12:38:55 -0400 Subject: [PATCH] Don't fail hosts when using any_errors_fatal when ignoring errors Fixes #15431 --- lib/ansible/plugins/strategy/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index cc1f519ca91..aa0f67e1dab 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -230,7 +230,7 @@ class StrategyModule(StrategyBase): run_once = templar.template(task.run_once) or action and getattr(action, 'BYPASS_HOST_LOOP', False) - if task.any_errors_fatal or run_once: + if (task.any_errors_fatal or run_once) and not task.ignore_errors: any_errors_fatal = True if not callback_sent: