Run a single role in playbook

In the same way that you can use tags to target specific tasks in a large playbook, is it possible to filter by roles? Tags are useful but often find i am tagging all tasks in a role with same tag so i can run just those, would be nice if I could use roles in a similar way to filter as tags?

thanks

You could always create a separate file with something like:

`

You can tag your role just like anything else. Doing so effectively runs the role as if every task inside the role has the tag.

`

roles:
  - role: myCoolRole,
    tags: tagsAreCool

`

yep but have to go through and do it for each role and each playbook i want to that, would be nice if there was something like an implicit tag for each role.