# Roles are download to a different directory when running ansible-galaxy install?

**URL:** <https://forum.ansible.com/t/roles-are-download-to-a-different-directory-when-running-ansible-galaxy-install/26742>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [February 14, 2018, 10:39pm UTC](https://forum.ansible.com/t/roles-are-download-to-a-different-directory-when-running-ansible-galaxy-install/26742 "2018-02-14T22:39:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZillaYT](https://avatars.discourse-cdn.com/v4/letter/z/4da419/32.png) [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Post date:** [February 14, 2018, 10:39pm UTC](https://forum.ansible.com/t/roles-are-download-to-a-different-directory-when-running-ansible-galaxy-install/26742/1 "2018-02-14T22:39:46Z")

</div>

Ansible v2.4.0.0

I have a requirements file that specifies the Git repo for each role that I want to use in my playbook, and I do the following to install the roles from our internal galaxy

`  
cd /path\_to\_playbook  
ansible-galaxy install -r requirements/requirements1.yml -p ./roles

`

and I expect the roles to be download in /path\_to\_playbook/roles, but instead are downloaded in /home/myuser/.ansible/roles. My ansible.cfg file does NOT have the roles path defined, and I don’t want it to. Any ideas why?
