# Parallel execution of local actions with multiple items

**URL:** <https://forum.ansible.com/t/parallel-execution-of-local-actions-with-multiple-items/18613>\
**Category:** Ansible Project\
**Created:** [June 25, 2015, 10:41pm UTC](https://forum.ansible.com/t/parallel-execution-of-local-actions-with-multiple-items/18613 "2015-06-25T22:41:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baraa\_Basata](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@Baraa\_Basata](https://forum.ansible.com/u/Baraa_Basata)\
**Post date:** [June 25, 2015, 10:41pm UTC](https://forum.ansible.com/t/parallel-execution-of-local-actions-with-multiple-items/18613/1 "2015-06-25T22:41:18Z")

</div>

Given a need to launch multiple cloud resources via local action, such as the below, is there a way to parallelize the execution of the task?

I think I’m looking for something like `--forks <n>`, except this is different in that there is only one host (localhost) involved in the play.

---

<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:** [June 26, 2015, 1:21pm UTC](https://forum.ansible.com/t/parallel-execution-of-local-actions-with-multiple-items/18613/2 "2015-06-26T13:21:27Z")

</div>

that is not currently a feature.

---

<div class="post-metadata">

**Author:** ![Baraa\_Basata](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@Baraa\_Basata](https://forum.ansible.com/u/Baraa_Basata)\
**Post date:** [June 26, 2015, 3:44pm UTC](https://forum.ansible.com/t/parallel-execution-of-local-actions-with-multiple-items/18613/3 "2015-06-26T15:44:34Z")

</div>

Thanks for confirming, Brian.

After more thought, I’ve decided to invoke the rds module with “wait: no” (the default value) and then add a task to poll until all newly spun-up instances are in the “available” state before performing other operations on them.

-Baraa
