I’ve been following instructions for setting up custom virtual environments on AWX, but I the venvs never become accessible. Any idea what I’m doing wrong? (cross-posted to StackOverflow)
Steps so far:
- Created virtualenvs at
/var/lib/awx/venv/py2and/var/lib/awx/venv/py3 - Sent authenticated
PATCHrequest to update venv path setting- Endpoint:
http://localhost:8052/api/v2/settings/system - Body:
{ "CUSTOM_VENV_PATHS": ["/var/lib/awx/venv/"] }
- Endpoint:
The /api/v2/config endpoint never shows anything but the default virtualenv.
"custom_virtualenvs": [
"/var/lib/awx/venv/ansible/"
]
Other things I’ve tried:
-
Restarting the AWX task container
-
Setting
CUSTOM_VENV_PATHS = ['/var/lib/awx/venv/']in/etc/tower/settings.py