# How to play a single role?

**URL:** <https://forum.ansible.com/t/how-to-play-a-single-role/18240>\
**Category:** Ansible Project\
**Created:** [May 15, 2015, 6:32pm UTC](https://forum.ansible.com/t/how-to-play-a-single-role/18240 "2015-05-15T18:32:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Hallstrom](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Philip\_Hallstrom](https://forum.ansible.com/u/Philip_Hallstrom)\
**Post date:** [May 15, 2015, 6:32pm UTC](https://forum.ansible.com/t/how-to-play-a-single-role/18240/1 "2015-05-15T18:32:14Z")

</div>

Using ansible\_playback I can use “-t” to limit the tasks played to the tags I specify. Is there anyway to do that with roles? Something like “-r role”?

Or do I need to tag every task in the role with the name of the role?

Thanks!

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 15, 2015, 6:42pm UTC](https://forum.ansible.com/t/how-to-play-a-single-role/18240/2 "2015-05-15T18:42:35Z")

</div>

you can tag the whole role in it's definition:

- {role: myrole, tags: ['tag21'] }
