On 20.05.2019 09:17, Ankit wrote: > Is there a way i can retrieve the currently used playbook name, currently > running play and task name using playbook rules? I need these 3 info to > send them as a parameter for an external python script which would print a > message using these 3 values so that the end users are aware of what task, > playbook and play has resulted in that particular message. Is there a way i > can retrieve these info during runtime in a playbook?
This information is not available for a task in a play. But I belive you have access to all this information inside a callback plugin, maybe you can write your own plugin to do what you want. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ab874cfa-0f63-682c-c1d4-83b6f87ed012%40olstad.com. For more options, visit https://groups.google.com/d/optout.
