Closed ghost closed 8 years ago
+1 here
What version of ansible were you using?
2.0
In case someone ends up here. With version 2.0 there is example of such callback over here https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/profile_tasks.py
in order to enable it You need to copy it callback_plugins folder and add following line to ansible.cfg callback_whitelist = profile_tasks
I'm confirming @andrey-gr 's fix worked for me too. Ansible 2.0.0.1. Thanks andrey!
Nice plugin but I'd suggest that @andrey-gr suggestion about the cfg file is added to the README file.
Updated the read me. Thanks @andrey-gr .
this is my folder -rw-rw-r-- 1 user staff 1.8K Nov 11 00:32 callback_plugins/profile_tasks.py -rw-r--r-- 1 user staff 1.3K Nov 11 00:02 preflight.yml
I run preflight but the callbacks are not executed and nothing is printed at the end of the task.