Blocks and roles

I’m trying to wrap an entire role in a block does anyone have examples of this working?

blocks are only for tasks, you can wrap all the tasks in a role's
tasks/main.yml in a block but not the role itself