Hi Daniel, you can use the environment variable
ANSIBLE_ROLES_PATH=/path/to/roles in front of ansible-playbook to modify
the path on the fly, without having to modify your ansible.cfg (or deploy a
local cfg in the working directory). In either case, the roles path can be
a colon-separated list (just like $PATH) so that it will search multiple
paths.

On Mon, Feb 9, 2015 at 4:48 PM, Daniel Upton <[email protected]> wrote:

> Is it possible to pass the roles_path parameter (from ansible.cfg) or an
> equivalent as an argument to ansible-playbook?
>
> My use case is: I'm using the ansible-galaxy (tool not web service) to
> pull my shared ansible roles from private GitHub repositories into a local
> directory called "vendor_roles", and I'd like ansible playbook to look in
> this directory too - currently I work around this by symlinking the roles
> into the roles directory.
>
> I'd also like to share this with the rest of my time without mandating a
> specific setting in their ansible.cfg file, which can be another barrier to
> entry / I'd rather give them a Makefile checked into our source control...
>
> If this is not currently possible (browsing the source it doesn't appear
> to be) would a pull request to this end likely be accepted?
>
> Thanks :)
>
> --
> 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/2a1c1c4b-9b1c-4c50-b4a4-d39d7ae28ca3%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2a1c1c4b-9b1c-4c50-b4a4-d39d7ae28ca3%40googlegroups.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/CAMFyvFiMGCKG7CHyRTMt6h6VZ9rV7JLqqb7knpdDP4Kc53PN3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to