-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add debug strategy plugin #15125
Add debug strategy plugin #15125
Conversation
This should probably have some associated documentation included with it. |
We can get docs from the readme https://github.com/ks888/ansible-playbook-debugger |
Changes Unknown when pulling 77c044c on ks888:add-debug-strategy-plugin into * on ansible:devel*. |
Changes Unknown when pulling b75f48b on ks888:add-debug-strategy-plugin into * on ansible:devel*. |
@sivel @bcoca I've added usage document. It's a part of "Playbooks: Special Topics" and almost same as the original readme https://github.com/ks888/ansible-playbook-debugger, but written in reST. |
Awesome !!! I just wanted to let you know it works for me:
Perhaps some tests would be nice to have. |
self.result = result | ||
|
||
|
||
class StrategyModule(linear.StrategyModule, StrategyBase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I recently fixed the bug which made you have to inherit directly from StrategyBase. Try just leaving in linear.StrategyModule and see if it now works.
ISSUE TYPE
ANSIBLE VERSION
SUMMARY
Add "debug" strategy. It enables you to invoke a debugger when a task is failed, and check several info, such as the value of a variable. Also, it is possible to update module arguments in the debugger, and run the failed task again with new arguments to consider how you can fix an issue.
There is a post about this strategy:
https://groups.google.com/forum/#!topic/ansible-project/IzjDLiIORlw