# Block/Always Always section not executing.

**URL:** <https://forum.ansible.com/t/block-always-always-section-not-executing/26567>\
**Category:** Ansible Project\
**Created:** [January 25, 2018, 1:33pm UTC](https://forum.ansible.com/t/block-always-always-section-not-executing/26567 "2018-01-25T13:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Josh\_Smith](https://forum.ansible.com/u/Josh_Smith)\
**Post date:** [January 25, 2018, 1:33pm UTC](https://forum.ansible.com/t/block-always-always-section-not-executing/26567/1 "2018-01-25T13:33:30Z")

</div>

Hello everyone,

I was asking about this in the IRC channel yesterday when we experienced a power outage at my office and I was thusly disconnected so I’m giving it a try here now.

I have a playbook which contains include/import (I have tried both methods with the same results) role statements in a Block/Always structure. See example here:

[https://gist.github.com/jcsmith/c6688e1506f6136b5d858b29ccda5d74](https://gist.github.com/jcsmith/c6688e1506f6136b5d858b29ccda5d74)

When a task fails in the included/imported role in the block section the always section never executes. Is this expected behavior?

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![Josh\_Smift2](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Josh\_Smift2](https://forum.ansible.com/u/Josh_Smift2)\
**Post date:** [February 1, 2018, 7:21pm UTC](https://forum.ansible.com/t/block-always-always-section-not-executing/26567/2 "2018-02-01T19:21:02Z")

</div>

There’s a bunch of issues about this; [https://github.com/ansible/ansible/issues/20736](https://github.com/ansible/ansible/issues/20736) is one, but I think maybe isn’t yours. If you search there for “block always”, though, you’ll probably find some stuff.

(I also had to reply to this, since I used to also be Josh Smith. But a different one. :^ )
