Introducing debug strategy plugin

Hi all,

When I write a playbook and run it, I often add a stupid bug and running the playbook fails at some point. Fixing these bugs often takes time since I am not sure actual values of facts, variables and so on. Then I think it would be nice if I have a debugger for it.

So I’ve created ‘debug’ strategy. The strategy 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.

Visit https://github.com/ks888/ansible-playbook-debugger to see an example and get it.

Please tell me if you have any opinions!

Thanks,
Kishin

Nice,

Do you want to contribute it to ansible/ansible?

Definitely. It would be great if I can contribute it.

What should I do first? Open an issue or pull request?

Just a pull request is all that is needed.

All right. I’ve just created a pull request.
https://github.com/ansible/ansible/pull/15125