this actually looks like what I'm looking for:
On Tuesday, February 20, 2018 at 10:40:35 AM UTC-8, shaun smiley wrote:
> Ah, I was starting to trace through Ansible but hadn't found yet where the
> CallBack is instantiated.
> v2_playbook_on_play_start receives an arg called "play". That gives the
> list of nodes as their passed into the command line; i.e. names of groups
> are not broken out. I'd prefer to have a list of computed hosts at some
> point before v2_playbook_on_stats at the very end.
> On Mon, Feb 19, 2018 at 6:36 AM, Matt Martz <m...@sivel.net> wrote:
>> The earliest you can start to get info like that is during
>> `__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>
>>> 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
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
For more options, visit https://groups.google.com/d/optout.