# Use role defined under another filesystem path

**URL:** <https://forum.ansible.com/t/use-role-defined-under-another-filesystem-path/27082>\
**Category:** Ansible Project\
**Created:** [March 22, 2018, 5:48pm UTC](https://forum.ansible.com/t/use-role-defined-under-another-filesystem-path/27082 "2018-03-22T17:48:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmoullia](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Post date:** [March 22, 2018, 5:48pm UTC](https://forum.ansible.com/t/use-role-defined-under-another-filesystem-path/27082/1 "2018-03-22T17:48:39Z")

</div>

Hi

My playbook is executed from this directory /home/projectA/playbook and it contains roles directory.  
One of the task defined within a role of this playbook would like to call another role which is not defined under /home/projectA/playbook/roles  
but within a different directory

/home/projectB

istio/  
defaults/  
meta/  
tasks/  
vars/  
main.yml

Main file

---

<div class="post-metadata">

**Author:** ![mhalano](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mhalano/32/1815_2.png) [@mhalano](https://forum.ansible.com/u/mhalano)\
**Post date:** [March 23, 2018, 11:18am UTC](https://forum.ansible.com/t/use-role-defined-under-another-filesystem-path/27082/2 "2018-03-23T11:18:41Z")

</div>

You could use Ansible Galaxy to import your roles. I think this is the  
sane approach.
