# Task title of import\_role tasks

**URL:** <https://forum.ansible.com/t/task-title-of-import-role-tasks/8107>\
**Category:** Get Help\
**Created:** [August 27, 2024, 8:53am UTC](https://forum.ansible.com/t/task-title-of-import-role-tasks/8107 "2024-08-27T08:53:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geertsky](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@geertsky](https://forum.ansible.com/u/geertsky)\
**Post date:** [August 27, 2024, 8:53am UTC](https://forum.ansible.com/t/task-title-of-import-role-tasks/8107/1 "2024-08-27T08:53:13Z")

</div>

I prepend my task names with a number to quickly see where things go wrong. The task name of an import\_role module task is not displayed however…  
Does anyone know a method how achieve this or a similar functionality?

---

<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:** [August 27, 2024, 2:28pm UTC](https://forum.ansible.com/t/task-title-of-import-role-tasks/8107/2 "2024-08-27T14:28:23Z")

</div>

imports are parsing time macros, and are never actually processed as a task. You would need to switch to `include_role` to have it execute during runtime

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [August 27, 2024, 3:10pm UTC](https://forum.ansible.com/t/task-title-of-import-role-tasks/8107/3 "2024-08-27T15:10:47Z")

</div>

IIRC there are some [slight differences between import and include](https://docs.ansible.com/ansible/10/playbook_guide/playbooks_reuse.html#comparing-includes-and-imports-dynamic-and-static-reuse). Depending on your use case, include instead of import might be problematic.

If it isn’t, I guess @sivel’s proposal should help you.

---

<div class="post-metadata">

**Author:** ![geertsky](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@geertsky](https://forum.ansible.com/u/geertsky)\
**Post date:** [August 27, 2024, 5:38pm UTC](https://forum.ansible.com/t/task-title-of-import-role-tasks/8107/4 "2024-08-27T17:38:02Z")

</div>

Niceone! I’ll check it out.

Thanks!
