From 0fad9575e9fe5fce68f526a582c7fa142051bbba Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 17 Jul 2014 10:12:42 -0400 Subject: [PATCH] Refine error message about invalid ops since people forget to indent tasks fairly often. --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 9ed12d1e19..118e833bc0 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -55,7 +55,7 @@ class Play(object): for x in ds.keys(): if not x in Play.VALID_KEYS: - raise errors.AnsibleError("%s is not a legal parameter in an Ansible Playbook" % x) + raise errors.AnsibleError("%s is not a legal parameter at this level in an Ansible Playbook" % x) # allow all playbook keys to be set by --extra-vars self.vars = ds.get('vars', {})