diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index c42dad9c268..4e7525198e3 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -163,6 +163,7 @@ class Base(with_metaclass(BaseMeta, object)): _run_once = FieldAttribute(isa='bool') _ignore_errors = FieldAttribute(isa='bool') _check_mode = FieldAttribute(isa='bool') + _any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True) # param names which have been deprecated/removed DEPRECATED_ATTRIBUTES = [ diff --git a/lib/ansible/playbook/block.py b/lib/ansible/playbook/block.py index 20858055d5a..4b68e7cfd49 100644 --- a/lib/ansible/playbook/block.py +++ b/lib/ansible/playbook/block.py @@ -36,7 +36,6 @@ class Block(Base, Become, Conditional, Taggable): _always = FieldAttribute(isa='list', default=[], inherit=False) # other fields - _any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True) _delegate_to = FieldAttribute(isa='string') _delegate_facts = FieldAttribute(isa='bool', default=False) _name = FieldAttribute(isa='string', default='') diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 2b24dbcce9a..e5353ab7d8b 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -86,7 +86,6 @@ class Play(Base, Taggable, Become): _tasks = FieldAttribute(isa='list', default=[]) # Flag/Setting Attributes - _any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True) _force_handlers = FieldAttribute(isa='bool', always_post_validate=True) _max_fail_percentage = FieldAttribute(isa='percent', always_post_validate=True) _serial = FieldAttribute(isa='list', default=[], always_post_validate=True) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index caa533ee4ec..43a1c9dd8eb 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -68,7 +68,6 @@ class Task(Base, Conditional, Taggable, Become): _args = FieldAttribute(isa='dict', default=dict()) _action = FieldAttribute(isa='string') - _any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True) _async = FieldAttribute(isa='int', default=0) _changed_when = FieldAttribute(isa='list', default=[]) _delay = FieldAttribute(isa='int', default=5)