Combination of serial and start-at-task

Hi everyone !
I have a question regarding the combination of serial and start-at-task.
Consider the follwoing play:

---- name: “play”
hosts: all
serial: 1
gather_facts: no

tasks:

  • name: task 1
    debug:
    msg: “Hello from task 1”
  • name: task 2
    debug:
    msg: “Hello from task 2”

When i run this useing --start-at-task=“task 2” ony the first host starts at “task2”.
A subsequent hosts run the full play.
My expectation was that all host start at “task2” in their batch.

Is this my fault, is this a bug or intentional ?

Thanks Henk

I would have to dig in but it looks like you might be getting a play_context.start_at_task = None and this sounds like a great test to add.