Block/Always Always section not executing.

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

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

Thanks,
Josh

There’s a bunch of issues about this; 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. :^ )