# Vizualizing execution of "include\_tasks" tasks

**URL:** <https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302>\
**Category:** Ansible Project\
**Created:** [June 7, 2021, 10:04pm UTC](https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302 "2021-06-07T22:04:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Wanderley](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alex_wanderley/32/3232_2.png) [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Post date:** [June 7, 2021, 10:04pm UTC](https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302/1 "2021-06-07T22:04:31Z")

</div>

Hello,

When executing a playbook which has “include\_tasks”, I can see the message about the tasks file that’s being included. For example:

TASK [Expand disks and file systems] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
included: /ansible/playbooks/tasks/expand\_fs.yml for yyyyyyy  
PLAY RECAP \*\*\*\*

Is there a way to tell Ansible to actually show (as it usually happens) which task in the included task file is being executed?

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [June 7, 2021, 11:51pm UTC](https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302/2 "2021-06-07T23:51:42Z")

</div>

those should be the tasks following the include message

---

<div class="post-metadata">

**Author:** ![Alex\_Wanderley](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alex_wanderley/32/3232_2.png) [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Post date:** [June 8, 2021, 5:22pm UTC](https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302/3 "2021-06-08T17:22:25Z")

</div>

Hi Brian,

(And sorry for still not getting it yet…)

So, it is indeed not possible to make Ansible echo/display the execution of each task that’s inside a file referenced by “include\_tasks”.  
We will only see the echo related to the actual “include\_tasks” call.

Regards,

Alex

---

<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:** [June 8, 2021, 5:42pm UTC](https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302/4 "2021-06-08T17:42:37Z")

</div>

Normally you would see it. What you have indicated seems to state that the tasks within it are not running.

You haven’t shown the actual task definition of the `include_tasks` nor how you are running ansible-playbook.

I’m going to guess it’s related to tags, but that is just a shot in the dark, as you haven’t provided much information to go on.

---

<div class="post-metadata">

**Author:** ![Alex\_Wanderley](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alex_wanderley/32/3232_2.png) [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Post date:** [June 8, 2021, 6:12pm UTC](https://forum.ansible.com/t/vizualizing-execution-of-include-tasks-tasks/35302/5 "2021-06-08T18:12:15Z")

</div>

Hello Matt,

Yes… Assuming that others can see what only you can see is indeed not a good way of asking for help. Sorry about that, Brian.  
(I usually pay attention to that, but missed it this time…)

And Matt, your guessing was right: I failed to propagate the tags I’m using on the playbook to the tasks listed in the tasks file referenced by “include\_tasks”.

Thank you for taking the time to help,

Alex
