sysadreq
                (sysadreq -)
              
                
              
                  
                  
              1
              
             
            
              Hello Ansible Group,
I was trying to create a custom callback plugin and I noticed a variation on the different callback plugins.
May someone kindly explain what’s the difference between runner_on_ok and v2_runner_on_okay?
I tried to google it but couldn’t find a documentation.
Thank you.
             
            
              
              
              
            
            
           
          
            
              
                sivel
                (sivel)
              
              
                  
                  
              2
              
             
            
              runner_on_ok is the v1 callback interface, whereas v2_runner_on_ok is the v2 callback interface.
Ultimately, the v2 interface was updated to receive a Result object, whereas the v1 interface receives a Host object and a result dictionary.
As such the v2 method will potentially give you access to more information.