Possibly useful - http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible
On Wed, Oct 29, 2014 at 6:38 PM, Tennis Smith <[email protected]> wrote: > Good idea. Thanks. > -T > > On Wed, Oct 29, 2014 at 4:13 PM, Brian Coca <[email protected]> wrote: > >> also look at hacking/test-module, it allows a debugger to attach to test >> a module directly >> >> On Wed, Oct 29, 2014 at 5:07 PM, Tennis Smith <[email protected]> >> wrote: >> >>> Thanks, Jon. I'll poke around. >>> -T >>> >>> >>> On Wednesday, October 29, 2014 3:49:45 PM UTC-5, Jon Forrest wrote: >>>> >>>> >>>> >>>> On Wednesday, October 29, 2014 9:52:11 AM UTC-7, Tennis Smith wrote: >>>>> >>>>> Hi, >>>>> >>>>> Has anyone found a good way to debug ansible modules via the PyCharm >>>>> debugger? >>>>> >>>>> -T >>>>> >>>> >>>> I did a little looking into this. The first problem is making Ansible >>>> not delete the modules on the remote host. The documentation page >>>> http://docs.ansible.com/developing_modules.html#check-mode >>>> >>>> mentions how to do this, although it would be nice if there were >>>> a module-specific directive that turned this on for just the >>>> one module, something like >>>> >>>> tasks: >>>> - name: ensure apache is at the latest version >>>> yum: pkg=httpd state=latest module-save=True >>>> >>>> That said, my understanding is that the remote modules don't >>>> require anything other than standard python, which is why Ansible >>>> isn't required on the remote node. So, you "should" be able to run >>>> a remote module using your favorite debugging method. I haven't >>>> tried this, and I'm not an Ansible expert, so I'd be interested >>>> in finding out if this works. >>>> >>>> Jon Forrest >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ansible Project" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/ansible-project/f53fcde4-3d13-4b37-91a7-1fce57f5e435%40googlegroups.com >>> <https://groups.google.com/d/msgid/ansible-project/f53fcde4-3d13-4b37-91a7-1fce57f5e435%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Brian Coca >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/m7uYtbvEWKo/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mz-9DXhWsdfAAG7%3DO5E14dGa9q2SJJ5RTrcMMLCOjFZg%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mz-9DXhWsdfAAG7%3DO5E14dGa9q2SJJ5RTrcMMLCOjFZg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAK72EKw407TJEKCRRr9AhbSAOkVp2dgnuUX%2BRAz1fAaV-PetDA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAK72EKw407TJEKCRRr9AhbSAOkVp2dgnuUX%2BRAz1fAaV-PetDA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxQk03%2BS4dOEiW89dVYk1cbf9xegYu9yJJ3%3DtN0O%2BevfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
