Re: [ansible-project] How to debug/log message when writing Ansible Module?

2014-06-11 Thread Michael DeHaan
What happens in your case with the above? You may possibly be not picking up the ansible out of yoru source tree. Better question for ansible-devel regardless. On Tue, Jun 10, 2014 at 9:15 AM, howac...@gmail.com wrote: Hey I've tried the information in this link:

Re: [ansible-project] How to debug/log message when writing Ansible Module?

2014-06-10 Thread howachen
Hey I've tried the information in this link: http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible But cannot get Ansible to show the interactive shell for debugging, any idea? # ansible --forks 1 --module-path . localhost -m test -a '' Where the test module

Re: [ansible-project] How to debug/log message when writing Ansible Module?

2014-06-09 Thread James Cammarata
This is more of a topic for ansible-devel, but to answer your question you can use the hacking/test-module script to run your module. At that point, you can either use print statements or epdb to debug your code, since it's running locally. If you only want to test your module remotely (ie. a

Re: [ansible-project] How to debug/log message when writing Ansible Module?

2014-06-09 Thread Jaime Gago
You might also want to read this post http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible J. On Monday, June 9, 2014 7:24:27 AM UTC-7, James Cammarata wrote: This is more of a topic for ansible-devel, but to answer your question you can use the hacking/test-module