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?