> 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 -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7eFmmTHhNqF8UiE0LP9dDeWPt_FhPKmATqMsOwO4uLGKw%40mail.gmail.com.
