Skip to content

add command to pre-create user site directory#221

Open
tylergmuir wants to merge 3 commits intoansible:develfrom
tylergmuir:devel
Open

add command to pre-create user site directory#221
tylergmuir wants to merge 3 commits intoansible:develfrom
tylergmuir:devel

Conversation

@tylergmuir
Copy link

This was the most elegant way I could think of to resolve #220.

This will create a directory at WORKDIR/.local/lib/python3.9/site-packages. With the default WORKDIR, it would be /runner/.local/lib/python3.9/site-packages. Which once python is launched under the runner user, the new path is included in the python paths. Then if a python module is installed during a playbook to that path, it is accessible by both modules and lookups.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unable to use lookups that require python modules to be installed

1 participant