I have written a small Vars Plugin (called local_vars) for Ansible, and like to access the extra_vars (which contains variables set on the command line with the -e
-e