File name of the current playbook

Hello,

I was looking for a way to get the file name of the current playbook.

Found an old thread, but no workarounds or solutions there.
https://groups.google.com/forum/#!searchin/ansible-project/playbook_dir|sort:relevance/ansible-project/JMh1zguAAbI/crMsJP-rLZoJ

Our use case is that we would like to log some message in an include with the the playbook file (not the playbook include).

“playbook_dir” is out there, but it holds the directory that the playbook is in.

Any solutions/workarounds?

Cheers

Simple but guaranteed to work: set a var in the playbook, use that.