No problem. By design, every configuration option has a corresponding environment variable you can use, just look in constants.py to see them (they all start with ANSIBLE_).
On Tue, Feb 10, 2015 at 6:29 AM, Tom Bamford <[email protected]> wrote: > Thanks James, I didn't know about this. Will come in very handy! > > On 10 February 2015 at 08:27, James Cammarata <[email protected]> > wrote: > >> 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 >> <https://groups.google.com/d/msgid/ansible-project/CAMFyvFiMGCKG7CHyRTMt6h6VZ9rV7JLqqb7knpdDP4Kc53PN3Q%40mail.gmail.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/CAAnNz0OLAfMRP3SJ%3DDSdNf52fvbCOhfe-R3gSLT6pAsmafpUtw%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAAnNz0OLAfMRP3SJ%3DDSdNf52fvbCOhfe-R3gSLT6pAsmafpUtw%40mail.gmail.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/CAMFyvFijW36VmfmfEfC5X4Rggz471jeosCRMfAdsigs%2BdF4CBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
