Hello Group,
Here is another possible bug. When using serial and run_once, the
run_once command is executed for every serial-loop, instead of once for
the entire playbook. I expected it to run only once for the entire playbook.
I'm using the latest ansible 1.8.2
Here is an example: I expect the shell: true command to run only once
for the entire playbook.
$ cat bug2.yml
---
- hosts: us-east-1
user: ec2-user
gather_facts: false
serial: 1
tasks:
- shell: ls
- shell: "true"
run_once: yes
$ ansible-playbook -i hosts.stage bug2.yml
PLAY [us-east-1]
**************************************************************
TASK: [shell ls]
**************************************************************
changed: [coll1.duse1]
TASK: [shell true]
************************************************************
changed: [coll1.duse1]
TASK: [shell ls]
**************************************************************
changed: [coll2.duse1]
TASK: [shell true]
************************************************************
changed: [coll2.duse1]
PLAY RECAP
********************************************************************
coll1.duse1 : ok=2 changed=2 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/54BE0575.4080704%40xogito.com.
For more options, visit https://groups.google.com/d/optout.