Anyone have some possible insight to this? Any thoughts are appreciated. Thanks!
On Monday, August 22, 2016 at 4:56:34 PM UTC-4, Jim Ficarra wrote: > > Hi, > > I am building an ActionModule (bypassing the host loop) to query an > internal REST service that provides bulk metrics for a bunch of hosts at > once (for the hosts that are in play). After getting the data back from > the call, I want to then populate the hostvars of the hosts returned with > filtered items from the data that correspond to each host. The call is > made once to avoid repeated queries to the REST API. > > The ActionModule seems to work in the context of a single host. Bypassing > the host loop runs once, but adding data to the results simply updates one > of the hosts and not all. Is there an object exposed from the > ActionModule, base classes or embedded objects that will let me iterate > over each hosts' vars/facts and update them? > > Ansible Version: 2.1.0.0 and 2.1.1.0 > > Thanks in advance! > > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
