Resolving errors in the debugger
After Ansible invokes the debugger, you can use the sevendebugger commandsto resolve the error that Ansible encountered. Consider this example playbook, which defines thevar1variable but uses the undefinedwrong_varvariable in a task by mistake.
If you run this playbook, Ansible invokes the debugger when the task fails. From the debug prompt, you can change the module arguments or the variables and run the task again.
Changing the task arguments in the debugger to usevar1instead ofwrong_varmakes the task run successfully.