# looking for confirmation of bug

**URL:** <https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936>\
**Category:** Ansible Project\
**Created:** [August 13, 2014, 6:43pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936 "2014-08-13T18:43:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [August 13, 2014, 6:43pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936/1 "2014-08-13T18:43:23Z")

</div>

before I file a bug report  
playbook to reproduce is below  
change hosts line to specify three or more individual hosts, or a group containing three or more hosts  
after running playbook /tmp/test.out is expected to contain 1 line for each host  
but it will often be missing one or more lines  
run playbook again and get a different result

---

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [August 13, 2014, 6:49pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936/2 "2014-08-13T18:49:46Z")

</div>

forgot to state, this error was produced running ansible 1.7 from linux and mac

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [August 13, 2014, 6:53pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936/3 "2014-08-13T18:53:42Z")

</div>

to get the result you want you’ll need either serial or forks set to 1​, being concurrent processes you are not guaranteed they happen in perfect succession.

---

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [August 13, 2014, 6:57pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936/4 "2014-08-13T18:57:16Z")

</div>

running with --forks=1 makes problem go away

---

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [August 13, 2014, 7:23pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936/5 "2014-08-13T19:23:54Z")

</div>

actually, if I set serial to 1 the first task which has a run\_once ends up running multiple times, which breaks the playbook

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [August 13, 2014, 7:30pm UTC](https://forum.ansible.com/t/looking-for-confirmation-of-bug/15936/6 "2014-08-13T19:30:24Z")

</div>

run\_once, runs once per specified hosts. Serial causes this to run for each batch.

So serial: 1 with run\_once causes the task to run for every host.
