I want to develop a lookup plugin that would take a string like “mygroup:!badhost” and return the list of host objects that match that pattern.
Based on my inspection of the Ansible source code, it seems like I could probably do that if I can get reference to an instance of the InventoryManager object. Can i get access to the inventory object from within a lookup plugin?