costum lookup plugin test

This commit is contained in:
Martijn Remmen
2021-05-07 16:45:10 +02:00
parent 74be61ee08
commit 65d4304a11
3 changed files with 15 additions and 7 deletions

View File

@ -0,0 +1,11 @@
from ansible.plugins.inventory import BaseFileInventoryPlugin
class InventoryModule(BaseFileInventoryPlugin):
NAME = 'td_assetmgmt'
def parse(self, inventory, loader, path, cache=True):
super(InventoryModule, self).parse(inventory, loader, path, cache)
self.inventory.add_host('boi')