# Running multiple process on the same server

**URL:** <https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254>\
**Category:** Ansible Project\
**Created:** [December 14, 2016, 1:13pm UTC](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254 "2016-12-14T13:13:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tzach\_Livyatan2](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@Tzach\_Livyatan2](https://forum.ansible.com/u/Tzach_Livyatan2)\
**Post date:** [December 14, 2016, 1:13pm UTC](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254/1 "2016-12-14T13:13:08Z")

</div>

Hi Ansiblers

I need to run multiple instances (processes) of a shell command on each server.  
Something like [GNU parallel](https://www.gnu.org/software/parallel/) but directly from Ansible.  
Any Ansible command / extension that will allow me to do so?

Thanks  
Tzach

---

<div class="post-metadata">

**Author:** ![Alexander\_H\_Laughlin](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Alexander\_H\_Laughlin](https://forum.ansible.com/u/Alexander_H_Laughlin)\
**Post date:** [December 15, 2016, 5:07am UTC](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254/2 "2016-12-15T05:07:57Z")

</div>

I could be incorrect but I believe that if you write a shell script that uses fork to instantiate itself the required number of times you could just call that script using the command module.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [December 15, 2016, 6:47am UTC](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254/3 "2016-12-15T06:47:55Z")

</div>

There are some suggestions in this presentation here: [http://www.slideshare.net/bcoca/more-tips-n-tricks](http://www.slideshare.net/bcoca/more-tips-n-tricks)

---

<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:** [December 15, 2016, 4:25pm UTC](https://forum.ansible.com/t/running-multiple-process-on-the-same-server/23254/4 "2016-12-15T16:25:04Z")

</div>

​I should update those slides with a big red stamp "you CAN do this, you SHOULD NOT"​
