# Roles calling

**URL:** <https://forum.ansible.com/t/roles-calling/28512>\
**Category:** Ansible Project\
**Created:** [September 6, 2018, 6:40am UTC](https://forum.ansible.com/t/roles-calling/28512 "2018-09-06T06:40:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhijit\_Chakraborty](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Abhijit\_Chakraborty](https://forum.ansible.com/u/Abhijit_Chakraborty)\
**Post date:** [September 6, 2018, 6:40am UTC](https://forum.ansible.com/t/roles-calling/28512/1 "2018-09-06T06:40:13Z")

</div>

hello all,  
I am just starting to play with Ansible roles. I have a file named main.yml where i am calling three roles

roles:  
a.yml  
b.yml  
c.yml

Mu question is whether this three roles will get called all at once or will role b get executed only when role a succeeds ?

Regards,  
Abhijit

---

<div class="post-metadata">

**Author:** ![Tchia04](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Post date:** [September 6, 2018, 9:07pm UTC](https://forum.ansible.com/t/roles-calling/28512/2 "2018-09-06T21:07:47Z")

</div>

roles typically doesn’t have .yml extension.

By default if a task within a role fails, ansible playbook will not execution. The 3 roles will be executed in sequence so b role will execute if a role is successful.
