Yup, I found / figured out all those guys. Thanks anyways though.

Yeah... so... callback names and method signatures are pretty stable, just 
not the arguments they're called with.

What's in a Task? I don't know. You don't know. Hell, maybe no one knows.

<https://lh3.googleusercontent.com/-FUz705Ry9Q8/WX9jd-m81UI/AAAAAAAAABo/aMrgO1AUQCwTDIve1Ve7qdBNMIeFBs8lACLcBGAs/s1600/1tcv30.jpg>


On Monday, July 31, 2017 at 11:14:08 PM UTC+8, Adrian Likins wrote:
>
> There are some docs on developing callback plugins, but not a lot, and 
> nothing that dives into
> the API: 
> http://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html#callback-plugins
>
> The callback API is a little bit fuzzy. The callback names and method 
> signatures are pretty stable, but the internals of the objects
> passed in (like the Task) aren't really documented and don't really 
> guarantee API stability. 
>
> For v2_on_task_start (
> https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/__init__.py#L339)
>  
> the 'task' arg there is an instance of
> an ansible.playbook.task.Task (
> https://github.com/ansible/ansible/blob/devel/lib/ansible/playbook/task.py#L49
> )
>
>
>
> On Sat, Jul 29, 2017 at 3:26 PM, <[email protected] <javascript:>> 
> wrote:
>
>> Developing a callback plugin and need to recognize when a particular task 
>> come through. I did some Google'n but didn't find anything...
>>
>> I'm guessing it's an instance of `Task` from lib/ansible/playbook/task.py 
>> <https://github.com/ansible/ansible/blob/devel/lib/ansible/playbook/task.py>
>> ?
>>
>> Does Ansible have API docs? From looking at the source there doesn't seem 
>> to be much in there to generate them off...
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/297ecbdf-3b78-4e38-bd1c-209fd7963f45%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/297ecbdf-3b78-4e38-bd1c-209fd7963f45%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/05b72b86-25d1-417c-a012-c9d07a09d22d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to