Hello,

ansible by default runs a task on all hosts and then waits for result
from everyone before going to the next step. If your task has a loop,
there's no way to run the loop synchronously between all nodes,
because is a single task with multiple options.

You can split the commands in several shell tasks, instead one with a loop.

Luca

On Tue, Jun 30, 2020 at 4:04 PM 'Jitender J' via Ansible Project
<ansible-project@googlegroups.com> wrote:
>
> Hi Team,
>
> I want to run multiple commands in shell module, but i want to run 1st 
> command on each hosts than move to next command on each host than third and 
> so on, so that i can get output of same command together from all host at 
> single place, tried with loop (with_item)
> but no luck, need help
>
> Thanks
> jitender
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/efe49a15-80e6-4d37-aab6-44793d1d4c58n%40googlegroups.com.



-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenzetto.l...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKuX69pb9XuqTd%2Bieoit-GVQOF0BGvPjFVrioRvawut6Uc%3DDrw%40mail.gmail.com.

Reply via email to