From fa9fe9d246de91accde0a435c6a825193f6f0789 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Wed, 1 Aug 2012 23:51:25 -0400 Subject: [PATCH] If task action is invalid, output the name and action. --- lib/ansible/playbook/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 1cdf450cde4..011e4c07fd1 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -71,7 +71,7 @@ class Task(object): # split the action line into a module name + arguments tokens = self.action.split(None, 1) if len(tokens) < 1: - raise errors.AnsibleError("invalid/missing action in task") + raise errors.AnsibleError("invalid/missing action in task.\n name: %s\n action: %s" % (self.name, self.action)) self.module_name = tokens[0] self.module_args = '' if len(tokens) > 1: