On Wed, Mar 30, 2016 at 3:13 PM, Miroslav Hudec <[email protected]> wrote:

> That's why I decided to make a piece of code that would go trough the
> hosts file and read usernames etc. for each host. But at this point I've
> realized that I don't know how to tell that module the name of the host to
> look for. When the task will run for the host named "Router2", is there a
> way to tell that module: Hey, you're now working for Router2, try to find
> it's username etc... Or is there an entire different approach? Thank you
> for any suggestions.
>
​I suggest either creating a connection plugin to deal with these issues or
do like most cloud modules having a common file/environment vars that are
used as a fallback for the plugin's options.​



> One last thing I'd like to know... Is there a way to use multi-file
> modules, but store the shared files in different location than
> module_utils?
>

​Currently no way to do this, if you are going to use a shared lib you need
it installed on the 'target' machine that will execute the module.​


-- 
----------
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/CACVha7d%3DzY5hR%2BojHJzr0q8Ng8qaDmZBAoM3zqpctXLBMQSqxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to