Callbacks really seem to be intended for reporting and generating specific output but this sounds like an interesting thing that you are attempting to achieve - can you describe it any more detail just in case there's another way to solve the problem?
>From what you've said it might be possible that failed_when meets your needs: http://docs.ansible.com/ansible/playbooks_error_handling.html although I get the impression you are trying something more sophisticated. Jon On Thursday, August 25, 2016 at 12:16:02 AM UTC+1, Damien Garros wrote: > > Hi > > I'm trying to build my own Callback plugin and I'm still struggling to > understand if it's possible to modify the JSON structured returned by a > module within a Callback plugin or not. > I would like to collect information from all tasks and process them at the > end to determine if a specific task should return PASS or FAIL > > BTW, is there an API doc available for the Callback plugin ? that would be > very useful. > > Thanks > Damien > > > -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
