Custom Virtual Environments Not Registered

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:

  1. Created virtualenvs at /var/lib/awx/venv/py2 and /var/lib/awx/venv/py3
  2. Sent authenticated PATCH request to update venv path setting
    • Endpoint: http://localhost:8052/api/v2/settings/system
    • Body: { "CUSTOM_VENV_PATHS": ["/var/lib/awx/venv/"] }

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

Could you please check if you have the same virtual environments on awx-web container as well?

That was it, thank you! Why does the web container need virtual environments installed?

We check the directory for custom virtual envs in the request response cycle (the web container).