Lookup Ansible vars from the command line

This is a quickie. If you want to look-up the value of an Ansible variable from the command line:


ansible localhost -m ansible.builtin.debug -a "var=my_variable"