# rolename not displayed in front of task when tasks name contains rolename

**URL:** <https://forum.ansible.com/t/rolename-not-displayed-in-front-of-task-when-tasks-name-contains-rolename/34306>\
**Category:** Ansible Project\
**Created:** [December 8, 2020, 9:39pm UTC](https://forum.ansible.com/t/rolename-not-displayed-in-front-of-task-when-tasks-name-contains-rolename/34306 "2020-12-08T21:39:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jason3](https://forum.ansible.com/u/Jason3)\
**Post date:** [December 8, 2020, 9:39pm UTC](https://forum.ansible.com/t/rolename-not-displayed-in-front-of-task-when-tasks-name-contains-rolename/34306/1 "2020-12-08T21:39:42Z")

</div>

I noticed something odd today when looking at ansible output. Most tasks output looks like:

> TASK [test\_role : task without rolename]

Where the role name, “test\_role” is in inserted in front of the task.

However if the task contains the role name, it’s not inserted:

> TASK [task with rolename test\_role]

Is that a bug or a feature?

[https://github.com/jgilfoil/ansible-bug-roletaskoutput](https://github.com/jgilfoil/ansible-bug-roletaskoutput) for a full example of what i mean.

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 8, 2020, 9:49pm UTC](https://forum.ansible.com/t/rolename-not-displayed-in-front-of-task-when-tasks-name-contains-rolename/34306/2 "2020-12-08T21:49:37Z")

</div>

It was a bug, it was fixed, then it showed up again, and now it’s fixed again, and now we have tests for it.

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 8, 2020, 9:52pm UTC](https://forum.ansible.com/t/rolename-not-displayed-in-front-of-task-when-tasks-name-contains-rolename/34306/3 "2020-12-08T21:52:22Z")

</div>

This is where it was fixed most recently: [https://github.com/ansible/ansible/pull/72511](https://github.com/ansible/ansible/pull/72511)

---

<div class="post-metadata">

**Author:** ![Jason3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jason3](https://forum.ansible.com/u/Jason3)\
**Post date:** [December 9, 2020, 2:40pm UTC](https://forum.ansible.com/t/rolename-not-displayed-in-front-of-task-when-tasks-name-contains-rolename/34306/4 "2020-12-09T14:40:15Z")

</div>

Thanks Matt!
