# Parallel execusion of task with arguments

**URL:** <https://forum.ansible.com/t/parallel-execusion-of-task-with-arguments/18015>\
**Category:** Ansible Project\
**Created:** [April 18, 2015, 6:16pm UTC](https://forum.ansible.com/t/parallel-execusion-of-task-with-arguments/18015 "2015-04-18T18:16:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maruti\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Maruti\_Kumar](https://forum.ansible.com/u/Maruti_Kumar)\
**Post date:** [April 18, 2015, 6:16pm UTC](https://forum.ansible.com/t/parallel-execusion-of-task-with-arguments/18015/1 "2015-04-18T18:16:54Z")

</div>

Need to execute a tak on muntiple nodes in parallel. And each execution takes one value from a list of values as input. How to achieve this?

Thanks,

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [April 19, 2015, 10:46pm UTC](https://forum.ansible.com/t/parallel-execusion-of-task-with-arguments/18015/2 "2015-04-19T22:46:54Z")

</div>

I would use a dictionary where the keys are the hostnames. Then the task would pull the variable it needs.
