Introducing debug strategy plugin

75 views
Skip to first unread message

yagami kishin

unread,
Mar 22, 2016, 11:37:23 AM3/22/16
to Ansible Project
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

Brian Coca

unread,
Mar 22, 2016, 11:52:08 AM3/22/16
to ansible...@googlegroups.com
Nice,

Do you want to contribute it to ansible/ansible?


----------
Brian Coca

yagami kishin

unread,
Mar 22, 2016, 10:19:00 PM3/22/16
to Ansible Project
Definitely. It would be great if I can contribute it.

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

Brian Coca

unread,
Mar 23, 2016, 12:11:53 AM3/23/16
to ansible...@googlegroups.com
Just a pull request is all that is needed.


----------
Brian Coca

yagami kishin

unread,
Mar 23, 2016, 1:03:30 PM3/23/16
to Ansible Project
All right. I've just created a pull request.
https://github.com/ansible/ansible/pull/15125
Reply all
Reply to author
Forward
0 new messages