# Possible bug when using serial and run\_once

**URL:** <https://forum.ansible.com/t/possible-bug-when-using-serial-and-run-once/17321>\
**Category:** Ansible Project\
**Created:** [January 20, 2015, 7:36am UTC](https://forum.ansible.com/t/possible-bug-when-using-serial-and-run-once/17321 "2015-01-20T07:36:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Dimitrov](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@Ivan\_Dimitrov](https://forum.ansible.com/u/Ivan_Dimitrov)\
**Post date:** [January 20, 2015, 7:36am UTC](https://forum.ansible.com/t/possible-bug-when-using-serial-and-run-once/17321/1 "2015-01-20T07:36:21Z")

</div>

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
