Forks when hosts are specified in playbooks

Hello,
I have a playbook where the hosts are listed by name instead of “all”.

Hi,

that is how ansible works, plays are run in order and paralelism is on play level. I would consider to make several groups in your inventory:

Hi Dave,
Thanks for the input. Yeah I kind of know about that but we are not using groups (we do have a reason for that). I’ll keep looking around to see if i can get a solution for this particular problem

Thanks

“we do have a reason for that” – what’s the reason?

Even having groups of one to designate a role can be a good idea.

A lot of our customers are wary about running roles/updates/fixes across multiple hosts. They prefer having granular control and usually specify which systems they need work done on. But at the same time they’d like to keep track of what roles have been applied to each machine.

Thanks

This is possibly a good case for a staging environment or rolling updates, Ansible can be configured to fail if a certain % of a batch don’t make it, before adding them back into a pool, etc.

–Michael