# General best practices regarding roles

**URL:** <https://forum.ansible.com/t/general-best-practices-regarding-roles/29355>\
**Category:** Ansible Project\
**Created:** [January 2, 2019, 6:51pm UTC](https://forum.ansible.com/t/general-best-practices-regarding-roles/29355 "2019-01-02T18:51:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [January 2, 2019, 6:51pm UTC](https://forum.ansible.com/t/general-best-practices-regarding-roles/29355/1 "2019-01-02T18:51:35Z")

</div>

When setting up roles I have the following:

`  
/etc/ansible/roles # tree aliases/ -L 1  
aliases/  
├── defaults  
├── handlers  
├── main.yml  
├── meta  
├── README.md  
├── tasks  
├── tests  
└── vars

`

The main.yml has the following content:

`

---

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [January 2, 2019, 8:37pm UTC](https://forum.ansible.com/t/general-best-practices-regarding-roles/29355/2 "2019-01-02T20:37:05Z")

</div>

I ended up renaming roles to role, then symlinking roles to role. It now imports them fine and I don’t have to change my current way of doing things.
