Thanks for your answer.
I have a /usr/share/ansible/cisco_nxos/library folder which contains many 
modules. Calling them works fine.
However, some new Cisco network modules are currently being incorporated as 
core modules into ansible 
(http://docs.ansible.com/ansible/list_of_network_modules.html#nxos), so 
some overlap is about to happen.

There is a "library = /usr/share/ansible" within /etc/ansible/ansible.cfg. 
Are you suggesting that we can have multiple "library = ..." settings, 
which would allow me to move the external library into another user folder 
and set some priority between them that way?

On Saturday, February 20, 2016 at 8:53:23 PM UTC+1, Brian Coca wrote:
>
> First, /usr/share/ansible is normally where core modules are stored, so 
> not sure what you are asking, but let me explain how loading works.
>
> If you put a module in a library dir adjacent to a play or in a role with 
> the same name as a 'core' module, it will override it, if that is what you 
> are asking.
>
> also the module path (settable in ansible.cfg or by env var) can be used 
> to establish priority, first found will override others, so if you set a 
> custom path before the ones shipped with ansible, they will be loaded first 
> and override them.
>
>
>
> ----------
> 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/2906cfa1-1be5-4b88-84a1-efd254b2d949%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to