Ansible logging to get playbook name

is there way to write playbook information in logging file with other data like tasks status etc. Important thing is where to get playbook information…

I want logs like:

Playbook name :

below that logs corresponding to the playbooks

Have a look at the callback plugins, they’re meant for this: https://docs.ansible.com/ansible/latest/plugins/callback.html

You’ll find examples e.g. with rpm -ql ansible | grep /callback/