# Name directive in Role

**URL:** <https://forum.ansible.com/t/name-directive-in-role/18080>\
**Category:** Ansible Project\
**Created:** [April 24, 2015, 4:04pm UTC](https://forum.ansible.com/t/name-directive-in-role/18080 "2015-04-24T16:04:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_White1](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@Kevin\_White1](https://forum.ansible.com/u/Kevin_White1)\
**Post date:** [April 24, 2015, 4:04pm UTC](https://forum.ansible.com/t/name-directive-in-role/18080/1 "2015-04-24T16:04:39Z")

</div>

Hello,

I’ve googled high and low for an answer but keep going down rabbit holes with no obvious solution. This seems like the right place to ask. I’m guessing this behavior is a “feature” of ansible and there’s not a work-around?

I have the following playbook excerpt:

---

<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:** [April 24, 2015, 5:01pm UTC](https://forum.ansible.com/t/name-directive-in-role/18080/2 "2015-04-24T17:01:19Z")

</div>

You added a name to an include and include itself disappears and is  
replaced by the included tasks during playbook compilation, these  
tasks have names already so even if it were inheritable (it isn't)  
they would be overriding it.

---

<div class="post-metadata">

**Author:** ![Kevin\_White1](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@Kevin\_White1](https://forum.ansible.com/u/Kevin_White1)\
**Post date:** [April 24, 2015, 6:09pm UTC](https://forum.ansible.com/t/name-directive-in-role/18080/3 "2015-04-24T18:09:11Z")

</div>

Thanks Brian! I suspected it was a “feature” of ansible.

The only workaround then, would to be to add something in the name of every individual task or go back to a single playbook?
