# Option to run included playbooks in parallel?

**URL:** <https://forum.ansible.com/t/option-to-run-included-playbooks-in-parallel/12489>\
**Category:** Ansible Project\
**Created:** [March 12, 2013, 3:17pm UTC](https://forum.ansible.com/t/option-to-run-included-playbooks-in-parallel/12489 "2013-03-12T15:17:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [March 12, 2013, 3:17pm UTC](https://forum.ansible.com/t/option-to-run-included-playbooks-in-parallel/12489/1 "2013-03-12T15:17:03Z")

</div>

In our use case we often have projects where we configure and deploy different hosts, through different playbooks.

When including those playbooks in a master playbook, the different playbooks are executed sequentially (which is an obvious design choice in ansible).

Though in some cases, there’s no need to do that, and the included playbooks, or at least some of them, may be executed in parallel.  
I don’t think there’s an option to do that right now. Do you think it would be an interesting option to group certain playbooks for parallel execution?

Serge

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [March 12, 2013, 7:09pm UTC](https://forum.ansible.com/t/option-to-run-included-playbooks-in-parallel/12489/2 "2013-03-12T19:09:56Z")

</div>

There is presently not an option to do that right now.

The way we're going to handle this (and I know, I've not shown code  
yet) is ansible-commander is going to have a scheduling API, and a job  
engine, so it can run more than one back and give you very nice  
summarizable output.

In the present system if we taught /usr/bin/ansible-playbook to do it  
the output would be rather discombobulated, or would wait for playbook  
runs to complete to show, which we obviously don't like.

Hence it will be a \*major\* feature of the ansible-commander project  
(which again, should be started on github this week, but will take a  
while to evolve... it's not a HUGE effort, but we are approaching it  
pretty systematically).

I will share more about short-term roadmap for that in a few days.

--Michael

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [March 13, 2013, 8:29am UTC](https://forum.ansible.com/t/option-to-run-included-playbooks-in-parallel/12489/3 "2013-03-13T08:29:39Z")

</div>

Thanks for the info, this makes perfect sense.

Serge
