Running multiple process on the same server

27 views
Skip to first unread message

Tzach Livyatan

unread,
Dec 14, 2016, 8:13:09 AM12/14/16
to Ansible Project
Hi Ansiblers

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

Thanks
Tzach
 

Alexander H. Laughlin

unread,
Dec 15, 2016, 12:07:57 AM12/15/16
to Ansible Project
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.

J Hawkesworth

unread,
Dec 15, 2016, 1:47:55 AM12/15/16
to Ansible Project

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

Brian Coca

unread,
Dec 15, 2016, 11:25:11 AM12/15/16
to ansible...@googlegroups.com
​I should update those slides with a big red stamp "you CAN do this, you SHOULD NOT"​


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages