Ivan Dimitrov
unread,Jan 20, 2015, 5:54:19 PM1/20/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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