I have a custom library path defined in the [defaults] section in my 
/etc/ansible/ansible.cfg file, like this:

library        = /etc/ansible/library

Not sure if this is required but I use a few custom modules which are in 
this folder.

What ansible version are you using?

On Tuesday, June 23, 2015 at 2:55:57 PM UTC+1, acropia wrote:
>
> Hi,
>
> I want to built some custom modules for Windows. But I ran into some 
> problems:
>
> When I read the docs about developing modules, the part about test-module 
> (git clone, source, chmod) is breaking my Ansible installation. I can't 
> find out on which path I have to execute those commands
>
>
> When I copy a module like the win_ping module inside 
> /usr/lib/python2.7/site-packages/ansible/modules/core/ I can execute it 
> with:
> # ansible windows -m my_test 
>
>
> But when I try to use the modul inside a playbook, like:
>
> - name: Testmodule
>   my_test: var=value
>
> I get an error "my_test is not a legal parameter in an Ansible task or 
> handler".
>
> I have read about a subdictory './library' which I creates in 
> /etc/ansible/library. But placing my module over there doesn't work.
>
> Any clues?
>

-- 
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/09529120-f489-4542-beea-9b55130e81bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to