Heh, I bet I know what you're up to... ;) It's not exposed in the same way under 2.x anymore. There are still ways to root around in inventory from an action plugin under 2.x (eg, self._templar._available_variables), but the objects are effectively immutable, since 2.x action plugins run in a fork (ie, changes made would be discarded when the fork exits).
Drop me a note- I have some ideas about how to do what I suspect you're trying to do... -Matt On Thursday, August 18, 2016 at 2:41:51 PM UTC-7, jmc wrote: > > Hi, > > I have an action plugin that was originally written for Ansible 1, and I'm > trying to port it over to 2. The plugin uses runner.inventory to > programmatically create host and group variables for every host in the > inventory. With the Ansible 2.0 changes, "runner" no longer exists. Does > Ansible 2.0 still expose the inventory structure to action plugins? > > Thank you for your time, > Joseph > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d913f34b-d099-46b8-9ed0-8cfc88244faf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
