The Ansible Galaxy page <http://docs.ansible.com/ansible/latest/galaxy.html#id2> at least say the "-r" or "--roles-path" option should override the roles_path setting in ansible.cfg
On Wednesday, November 29, 2017 at 9:55:20 AM UTC-5, ZillaYT wrote: > > I have the following directory structure. The my-play-reqs.yml file > contains the roles that I need for the my-play.yml playbook. > /path_to_playbooks/my-play.yml > /path_to_playbooks/requirements/my-play-reqs.yml > > ...and I run the following command to install my roles > $ cd/path_to_playbooks > $ ansible-galaxy install -r requirements/my-play-reqs.yml -p roles/ -- > force > > ...and I expect the roles to be installed /path_to_playbooks/roles. > However, they're installed in /etc/ansible/roles instead. The > /etc/ansible/ansible.cfg file does have this line > roles_path = /etc/ansible/roles:/usr/share/ansible/roles > > ...but shouldn't the "-p roles/" option overried that and put the roles > in /path_to_playbooks/roles? > > -- 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/7fffb137-f811-4764-aee3-99baf6d1a638%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
