Lookup Ansible vars from the command line 2025-07-25 by alex in 2025 tagged ansible Updated: 2025-09-15 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"