Hello Group,
I think I found a possible bug when using the serial: and
start-from-task together.
I expect to loop through all my hosts in the host group and start from
the specific task for all hosts. But it starts the first host from the
specified task, than moves to the next hosts from the beginning of the
tasks/roles
Here is a simple test case. The shell: ls command should not have been
executed
$ cat bug1.yml
---
- hosts: us-east-1
user: ec2-user
gather_facts: false
serial: 1
tasks:
- shell: ls
- shell: "true"
$ ansible-playbook -i hosts.stage bug1.yml --start-at-task="shell true"
PLAY [us-east-1]
**************************************************************
TASK: [shell true]
************************************************************
changed: [coll1.duse1]
TASK: [shell ls]
**************************************************************
changed: [coll2.duse1]
TASK: [shell true]
************************************************************
changed: [coll2.duse1]
PLAY RECAP
********************************************************************
coll1.duse1 : ok=1 changed=1 unreachable=0 failed=0
coll2.duse1 : ok=2 changed=2 unreachable=0 failed=0
--
Best Regards,
Ivan Dimitrov
Manager Technical Operations
Xogito Group, Inc.
-- Life is too short for bad software
--
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/54BEDC8D.1050102%40xogito.com.
For more options, visit https://groups.google.com/d/optout.