# Ansible role execution order is not serial

**URL:** <https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [April 11, 2016, 8:04am UTC](https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126 "2016-04-11T08:04:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tung\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@Tung\_Nguyen](https://forum.ansible.com/u/Tung_Nguyen)\
**Post date:** [April 11, 2016, 8:04am UTC](https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126/1 "2016-04-11T08:04:00Z")

</div>

I have a set of custom roles like this on AWS EC2

`

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [April 12, 2016, 3:41am UTC](https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126/2 "2016-04-12T03:41:14Z")

</div>

you cannot have multiple roles: declarations per play, if you want to make this work in that order you need a 2nd play:

---

<div class="post-metadata">

**Author:** ![Josh\_Smift1](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Post date:** [April 12, 2016, 2:17pm UTC](https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126/3 "2016-04-12T14:17:52Z")

</div>

> you cannot have multiple roles: declarations per play, if you want to  
> make this work in that order you need a 2nd play:

If you really needed to do it in one play for some reason, you could have  
a 'pause' (or whatever) role, with one pause (or wait\_for) task.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Josh (jbs@care.com)

This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.
