There are multiple sources where variables for Ansible can be defined. Most of them can be shown via the
setup module, but there are more.
For example, if you use a dynamic inventory script to access a Satellite server many variables like the organization are provided via the inventory script – and these are not shown in setup usually.
To get all variables of a host use the following notation:
--- - name: dump all hosts: all tasks: - name: get variables debug: var=hostvars[inventory_hostname]
Use this during debug to find out if the variables you’ve set somewhere are actually accessible in your playbooks.
If even created a small github repository for this to easily integrate it with Tower.