In a callback plugin, I did parameter the filename to dipatch log files by host and ansible pid this way:
filename = ‘%s_%s’ % (host,os.getpid())
I would like to add the name of the playbook that is run, in example if I run the command: ansible-playbook test.yml, I would like to create this logfile: test_host_pid
in what structure and variable can I get the playbook name ?