Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to use lookups that require python modules to be installed #220

Open
tylergmuir opened this issue Nov 10, 2023 · 0 comments · May be fixed by #221
Open

unable to use lookups that require python modules to be installed #220

tylergmuir opened this issue Nov 10, 2023 · 0 comments · May be fixed by #221

Comments

@tylergmuir
Copy link

I ran into an issue recently where a python module was required to be installed for a lookup plugin. If you install the python module within a playbook it is made available to other ansible modules, but not to lookups. This is because the python module is installed in the user site path which doesn't exist prior to the playbook being run. That then causes the python path of the playbook to not include the user site path.

There are some hacky workarounds for this, but it seems like the most elegant solution to this is to pre-create the user site path as a part of the container.

This allows users the option of using a step in their playbook to install a python module required for a lookup without forcing them to build a custom container with that python module pre-installed or at a minimum having to pre-create the user site path themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant