List tasks for a play in a callback plugin

15 views
Skip to first unread message

Daniel Matsson

unread,
Oct 13, 2016, 11:10:44 AM10/13/16
to Ansible Project
Hi!

I'm trying to create a callback plugin where I would like to get a list with all tasks that will be running before they are actually executed. I'm able to get a list with all plays using playbook.get_plays() but if I try to get tasks for each play (play.get_tasks()) it just returns an empty list. Could it be that all data have not been loaded yet (v2_playbook_on_start()) or am I doing something wrong? 

Thanks,
Daniel

Brian Coca

unread,
Oct 17, 2016, 3:05:42 PM10/17/16
to ansible...@googlegroups.com
That data does not exist yet.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages