# Play's included\_path does not have playbook file name?

**URL:** <https://forum.ansible.com/t/plays-included-path-does-not-have-playbook-file-name/24162>\
**Category:** Ansible Project\
**Created:** [April 6, 2017, 7:01pm UTC](https://forum.ansible.com/t/plays-included-path-does-not-have-playbook-file-name/24162 "2017-04-06T19:01:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeiLei\_W](https://avatars.discourse-cdn.com/v4/letter/l/6bbea6/32.png) [@LeiLei\_W](https://forum.ansible.com/u/LeiLei_W)\
**Post date:** [April 6, 2017, 7:01pm UTC](https://forum.ansible.com/t/plays-included-path-does-not-have-playbook-file-name/24162/1 "2017-04-06T19:01:18Z")

</div>

Hi everyone

I installed the latest ansible version by: pip install git+git://github.com/ansible/ansible.git@devel

My ansible version is: ansible 2.4.0.

I am implementing the callback to send some updates for each task, and I need to construct the task name as playbook:play:task, I have a playbook /tmp/A.yml that includes another playbook /tmp/B.yml,

B has one playB with three tasks, so when construct name of tasks in B, I need to put B:playB:task1. I was trying to get the file name of B by using play.\_included\_path when it calls playB, but it returns " **/tmp/" only**.

Should it return " **/tmp/B.yml"**? I checked the source code of playbook\_include.py, when it loads playbook B, it should fill up the file\_name of the B.

Could anyone please help me with this issue?

Thanks  
Best regards

Leilei
