【发布时间】:2019-04-01 19:12:28
【问题描述】:
我一直按照说明在 AWX 上设置自定义虚拟环境。
到目前为止的步骤:
- 在
/var/lib/awx/venv/py2和/var/lib/awx/venv/py3创建了virtualenvs - 发送经过身份验证的
PATCH请求以更新venv 路径设置- 端点:
http://localhost:8052/api/v2/settings/system - 正文:
{ "CUSTOM_VENV_PATHS": ["/var/lib/awx/venv/"] }
- 端点:
/api/v2/config 端点只显示默认的 virtualenv。
"custom_virtualenvs": [
"/var/lib/awx/venv/ansible/"
]
我尝试过的其他事情:
- 重新启动 AWX 任务容器
- 在
/etc/tower/settings.py中设置CUSTOM_VENV_PATHS = ['/var/lib/awx/venv/']
我错过了什么?
资源:
https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtualenv.html
https://github.com/ansible/awx/blob/devel/docs/custom_virtualenvs.md
【问题讨论】:
标签: ansible ansible-tower ansible-awx