> 1. In what directory should I put the common code ?
module_utils (this works fine in collections and as adjacent dir in roles/plays)
> 2. How to import the common code from within the lookup plugin ?
same as modules do so ansible.module_utils.<name or rest of path>
> 3. In what directory should I put the resource files ?
not sure what these are but normally files/ in roles or adjacent to
play (there is no facility in collections)
> 4. How to I open the resource files from within the lookup plugin ? (or in the common code)
if using #3, they should already be in the expected search paths for
lookups as long as you use the existing "dwim" functions, most notably
the `self.find_file_in_search_path` available to all lookups.
--
----------
Brian Coca