Vizualizing execution of "include_tasks" tasks

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

those should be the tasks following the include message

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

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.

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