Best way to debug ansible is to dump the entire state out.
This is a play that would do the job
- name: Debug
hosts: localhost
connection: local
tasks:
- name: Display all variables/facts known for a host
debug:
var: hostvars['localhost']