ansible/ansible — pull request #1772 by fdavis (2012-12-14 07:06:44+00:00)
Title: change error message on check_conditional when variable does not exist

So if I run
ansible-playbook setup.yml --syntax-check
Ansible returns that the syntax is fine.
But when I run the play Python throws a SyntaxError on the non-existing variable.

Currently Ansible outputs a SyntaxError with traceback, my idea outputs as follows
fatal: [localhost] => Could not evaluate the expression: ${non_existing_variable}

Below is the gist with the example playbook, and example output.

setup.yml
https://gist.github.com/4283029
original output
https://gist.github.com/4283051
my output
https://gist.github.com/4283331