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 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/CAJ5XC8mz-9DXhWsdfAAG7%3DO5E14dGa9q2SJJ5RTrcMMLCOjFZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to