[ansible-devel] count number of plays/tasks before & during run

2017-02-24 Thread shaun smiley
I have a use case to monitor very long running plays over very slow, latent links. I would like to do a pre-run check, calculating how many plays, and tasks within each play, are going to run. The closest it seems is currently possible is to run --check and do a simple regex on the output.

[ansible-devel] private module_utils

2017-01-11 Thread shaun smiley
For hacking on new modules that will import libraries that are also being hacked on, there doesn't appear to be a way currently to import. Digging around recently, I saw mentions that with the ziploader addition (which became ansiballs... great name!) that a private module_utils would be

[ansible-devel] callback_plugin: get list of hosts in __init__

2018-02-17 Thread shaun smiley
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

Re: [ansible-devel] callback_plugin: get list of hosts in __init__

2018-02-23 Thread shaun smiley
this actually looks like what I'm looking for: https://groups.google.com/d/msg/ansible-devel/DQiGednLgU0/JIvQ2Z-zFQAJ specifically the get_variable_manager() method. On Tuesday, February 20, 2018 at 10:40:35 AM UTC-8, shaun smiley wrote: > > Ah, I was starting to trace through A