I've been following instructions for setting up custom virtual environments on AWX.
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
What am I missing?
Resources:
https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtualenv.html
https://github.com/ansible/awx/blob/devel/docs/custom_virtualenvs.md