I think you sort of answered your own question - serial: is related to
a given play,
so if that play is targeted against a group then tasks against thet
group will complete
on each server before the next one starts.A good example is bouncing
servers while
leaving enough active to keep your load balancer happy

I've always thought of forks as more to do with the ansible control
host; if things can
run in parallel they will, and you can safely ramp that up as high as
you like as long
as the control host has enough resources. This pays off well for e.g.
package installs.

I might be missing something about your use case; why wouldn't you always want
a serial: tagged play to run - well, serially?

On 22 June 2016 at 20:00, Johannes Kastl <[email protected]> wrote:
> Dear all,
>
> I know that by setting "serial: 1" in a play I can make sure that only
> one host is being changed at a time. This overrides the forks setting.
>
> But both settings are either global (forks) or per-play. I need
> something like this for a group of servers. I do not want to maintain
> a duplicate repository where all my playsbooks container "serial: 1"
> just for that group.
>
> Is it possible to achieve something similar on a group_var basis?
>
> Thanks in advance.
>
> Johannes
>
> --
> 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/576AE046.7020708%40ojkastl.de.
> 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/CAK5eLPQrXChFQ0m%3D7tJjiZxvP4je07AzYokKefvXDHxAVGRvvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to