listing all defined variables

Is there a way to list all defined variables during a playbook run?
Something similar to:

pprint.pprint(locals()) in python?

I'd basically like to get a snapshot of all defined variables -- host
vars, things set with -e, group_vars/all , etc.

Thanks,

James

Assuming 1.4

debug: var=hostvars[inventory_hostname]

Should get you pretty far.

If not on 1.4, you would want to template that instead and read the template.