Option to control if entire play should be aborted if batch of hosts failed #40271
When using serial strategy, if entire batch of hosts failed (due to they are unreachable or due to some processing error) then Ansible interrupts all remaining plays.
While it makes sense for some cases, there're also situations when such behaviour is absolutely unexpectable.
I'm not going to diving into details of possible cases, just one example.
We successfully introduced an option which allows to control whether it's acceptable to continue plays if current batch of hosts failed.
I demonstrate a case when in main playbook another playbook is included which is for communicating with several hosts using serial strategy with batch size equal to 1. If one of target hosts is unreachable than our main playbook wouldn't be completed.
We will not reach execution of tasks in the main playbook - entire play would be interrupted.
Adding the option break_play_on_batch_failed: false which dictates to not interrupt entire play will fix this situation.
So having two hosts one of which is up and one is down, launch the main play:
@agenosov Can you please rebase this PR so we can review? Rebasing details are documented at:
…processing a batch of hosts wasn't successful