Currently yum module successfully install multiple packages in one time, the problem is how to do it with action
On Fri, Feb 13, 2015 at 11:18 AM, Giovanni Tirloni <[email protected]> wrote: > On Fri, 13 Feb 2015 10:38 +0400, Alexey Wasilyev <[email protected]> > wrote: > > Another problem, > > yum: name={{ item }} state=installed > > with_items: [package1, package2] > > > > install packages as yum install package1 package2 > > but your solution install packages as > > yum install package1; yum install package2 > > that is rather slower. How this can be fixed? > > It's designed to work on one package at a time. IMHO, working on > multiple packages simultaneously will complicate the module because now > it has to parse yum's output and understand it, instead of just relying > on yum's return code. > > You could use the shell/command modules, but they will warn you to use > the yum module instead ("Consider using yum module rather than running > yum"). In fact, it'll warn you about using any of the commands listed > here: http://bit.ly/1ClYXgl > > Giovanni > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/FbuUeSEBfOw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/1423815495.1199128.227008961.104CFC7E%40webmail.messagingengine.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CANMXT8uowfccSUOrwNQqXprtvYK4sTNuf7drcj16E3_F6eY%3D0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
