# Roles that don't use tags get ignored

**URL:** <https://forum.ansible.com/t/roles-that-dont-use-tags-get-ignored/18176>\
**Category:** Ansible Project\
**Created:** [May 6, 2015, 10:32pm UTC](https://forum.ansible.com/t/roles-that-dont-use-tags-get-ignored/18176 "2015-05-06T22:32:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_Tirloni](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Post date:** [May 6, 2015, 10:32pm UTC](https://forum.ansible.com/t/roles-that-dont-use-tags-get-ignored/18176/1 "2015-05-06T22:32:08Z")

</div>

Hello,

I developed a series of roles that accept some common tags (e.g.  
create, destroy, etc). I also have a "common" role that doesn't make  
use of tags, all its tasks should run regardless.

If I specify the roles like this:

---

<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 6, 2015, 10:57pm UTC](https://forum.ansible.com/t/roles-that-dont-use-tags-get-ignored/18176/2 "2015-05-06T22:57:23Z")

</div>

No the --tags/-t flag is meant to 'run ONLY these tags', in 1.9 (which  
you are using as it also introduced 'untagged') and above you can also  
tag the tasks in the common role with 'always' which means it will  
always run unless you explicitly --skip-tags always.

---

<div class="post-metadata">

**Author:** ![Giovanni\_Tirloni](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Post date:** [May 7, 2015, 11:18am UTC](https://forum.ansible.com/t/roles-that-dont-use-tags-get-ignored/18176/3 "2015-05-07T11:18:46Z")

</div>

That makes sense, thank you!

Giovanni

---

<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 7, 2015, 12:43pm UTC](https://forum.ansible.com/t/roles-that-dont-use-tags-get-ignored/18176/4 "2015-05-07T12:43:24Z")

</div>

actually you can even tag the whole role by passing tags: ['always']  
into the role entry in the play so you do not need to do each task.
