ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
129 stars 151 forks source link

add command to pre-create user site directory #221

Open tylergmuir opened 7 months ago

tylergmuir commented 7 months ago

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.