The earliest you can start to get info like that is during
`v2_playbook_on_play_start`

`__init__` is run during object instantiation, which happens before a
playbook and play have been parsed.  Since a play is where the hosts live,
you will have to wait until that point.

On Sat, Feb 17, 2018 at 11:18 PM, shaun smiley <senorsm...@gmail.com> wrote:

> I am developing a custom callback plugin.
>
> I need to know the computed list of hosts in the constructor (i.e. the
> __init__method of my CallbackModule).
> This should be all hosts currently limited, not necessarily which hosts
> will actually be called in any particular play (which may vary of course).
>
> Is this even possible to grab at that point?
>
>
> --
> 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 ansible-devel+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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 ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to