We need to use the following command
Ansible – m debug- a “var=hostvars[‘hostname’]” localhost(10.92.62.215)