diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 58f56db230..639f4c065b 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -505,7 +505,7 @@ class Play(object): included_additional_conditions = list(old_conditions) if not isinstance(x, dict): - raise errors.AnsibleError("expecting dict; got: %s" % x) + raise errors.AnsibleError("expecting dict; got: %s, error in %s" % (x, original_file)) # evaluate sudo vars for current and child tasks included_sudo_vars = {}