# Call a role from another role

**URL:** <https://forum.ansible.com/t/call-a-role-from-another-role/24742>\
**Category:** Ansible Developer\
**Created:** [June 16, 2017, 4:54am UTC](https://forum.ansible.com/t/call-a-role-from-another-role/24742 "2017-06-16T04:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boonhai\_ng](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@boonhai\_ng](https://forum.ansible.com/u/boonhai_ng)\
**Post date:** [June 16, 2017, 4:54am UTC](https://forum.ansible.com/t/call-a-role-from-another-role/24742/1 "2017-06-16T04:54:30Z")

</div>

Hi all,  
I had created a role A - name a “Role-A” and role B name as “Role-B”, but I would like to call role A from sub-task of Role B? is it possible? something like below syntax…

Role-B - tasks’ main.yml

---

<div class="post-metadata">

**Author:** ![mark.kusch](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mark.kusch](https://forum.ansible.com/u/mark.kusch)\
**Post date:** [June 16, 2017, 4:57am UTC](https://forum.ansible.com/t/call-a-role-from-another-role/24742/2 "2017-06-16T04:57:32Z")

</div>

[https://docs.ansible.com/ansible/include\_role\_module.html](https://docs.ansible.com/ansible/include_role_module.html)

# kraM
