During Ansible playbook debugging it is useful to know how to display host facts or registered variables.
To print a message from Ansible playbook, as well as a value of a variable, we can use Ansible debug module.
In the examples below i am showing how to print particular Ansible variables and how to list all known facts and variables from Ansible playbook. (more…)