Introduction
Ansible offers thousands of modules, which are reusable standalone scripts that Ansible runs on your behalf. The Ansible debug module prints statements when playbooks are being executed. It can also be used to debug variables and expressions without affecting how the playbook is executed.
The blog explains the details of Ansible - Debug along with its example and details of the debugger.
debug - Print statements during execution
The Ansible debug module can be used to print a message from the Ansible playbook as well as the value of a variable. It's simple to utilise the Ansible debug module.
Let's have a look at the options available.
Options
The following table consist of the options in debug:

To help you comprehend, let's look at an example.
Example
The debug module in Ansible's most fundamental use is to display straightforward statements to stdout (Standard Output). Think of a playbook with the following information in it.
Code:
---
- name: Ansible debug module in action
hosts: all
tasks:
- name: Print a simple statement
debug:
msg: "Hey Ninja !! Happy Coding !!"
"Hey Ninja !! Happy Coding !!" is printed when the playbook is executed.
Let's look at the details of debugger.






