Improve readability, give more info about context

pull/18169/head
Steve Steiner 8 years ago committed by Brian Coca
parent cf8639ff62
commit 931939e2f8

@ -3,12 +3,10 @@ Playbook Debugger
.. contents:: Topics .. contents:: Topics
In 2.1 we added a ``debug`` strategy. This strategy enables you to invoke a debugger when a task is In 2.1 we added a ``debug`` strategy. This strategy enables you to invoke a debugger when a task has
failed, and check several info, such as the value of a variable. Also, it is possible to update module failed. You have access to all of the features of the debugger in the context of the failed task. You can then, for example, check or set the value of variables, update module arguments, and re-run the failed task with the new variables and arguments to help resolve the cause of the failure.
arguments in the debugger, and run the failed task again with new arguments to consider how you
can fix an issue.
To use ``debug`` strategy, change ``strategy`` attribute like this:: To use the ``debug`` strategy, change the ``strategy`` attribute like this::
- hosts: test - hosts: test
strategy: debug strategy: debug
@ -26,8 +24,9 @@ For example, run the playbook below::
- name: wrong variable - name: wrong variable
ping: data={{ wrong_var }} ping: data={{ wrong_var }}
The debugger is invoked since *wrong_var* variable is undefined. Let's change the module's args, The debugger is invoked since the *wrong_var* variable is undefined.
and run the task again::
Let's change the module's arguments and run the task again::
PLAY *************************************************************************** PLAY ***************************************************************************

Loading…
Cancel
Save