Hi,
I’m facing an issue with Ansible Callbacks when trying to get the extra_vars.
From the v2_playbook_on_start I’m able to get access to the Playbook object thanks to the play parameter of the method.
Unfortunately, I’m not able to get the extra_vars nor the variable_manager …
How can I access the extra_vars from a callback ?
I managed to make it work by adding a reference to the variable_manager object into the Playbook object by adding the following lines in the load method.
pb._variable_manager = variable_manager
It makes the job, but I would like to be sure there is no other way to do it.
Our version of Ansible is the 2.3.0.0 but it’s not working also with 2.3.1.0.
Any advice would be good,
Thanks,