Combination of serial and start-at-task

19 views
Skip to first unread message

Henk Wiedig

unread,
Sep 8, 2022, 10:59:59 AM9/8/22
to Ansible Development
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




Andrew Latham

unread,
Sep 12, 2022, 12:46:05 PM9/12/22
to Henk Wiedig, Ansible Development
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.

--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/ff4e2bd1-40c9-4ac6-b827-e01c625477d0n%40googlegroups.com.


--
- Andrew "lathama" Latham -
Reply all
Reply to author
Forward
0 new messages