# strange behaviour with block statement in ansible 2.0

**URL:** <https://forum.ansible.com/t/strange-behaviour-with-block-statement-in-ansible-2-0/20697>\
**Category:** Ansible Project\
**Created:** [February 27, 2016, 7:21pm UTC](https://forum.ansible.com/t/strange-behaviour-with-block-statement-in-ansible-2-0/20697 "2016-02-27T19:21:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulrich\_Hochholdinger](https://avatars.discourse-cdn.com/v4/letter/u/839c29/32.png) [@Ulrich\_Hochholdinger](https://forum.ansible.com/u/Ulrich_Hochholdinger)\
**Post date:** [February 27, 2016, 7:21pm UTC](https://forum.ansible.com/t/strange-behaviour-with-block-statement-in-ansible-2-0/20697/1 "2016-02-27T19:21:30Z")

</div>

Hi,  
I’m experiencing a strange phenomenon with the block statement. If I rearrange a when statement I get syntax error. But the data-structure of both playbooks is the same:

Play that works:

---

<div class="post-metadata">

**Author:** ![Ulrich\_Hochholdinger](https://avatars.discourse-cdn.com/v4/letter/u/839c29/32.png) [@Ulrich\_Hochholdinger](https://forum.ansible.com/u/Ulrich_Hochholdinger)\
**Post date:** [February 27, 2016, 7:29pm UTC](https://forum.ansible.com/t/strange-behaviour-with-block-statement-in-ansible-2-0/20697/2 "2016-02-27T19:29:24Z")

</div>

Ignore the report, I found the error by myself ;-/  
No bug! No feature!

cheers  
Ulli
