BUG or Operating As Designed?

I have the following playbook:

`

A play encompasses pre_tasks, roles, tasks, and post_tasks. You are expecting it to end the role.

Perhaps you should instead move all subsequent tasks of that role into a block or another file and use include_tasks, and then apply the when statement to that (but reverse the logic).

a way to do this is having a block on whole role and a rescue that
checks for the error, which allows you to make a 'skip rest' kind
facility.