ansible-playbook -i inventory install.yml
以上命令执行后可能会报的错:
- dial tcp: … no such host
- Docker无法连接服务器,可能需要设置代理。具体方法参见之前的文章。
- Cannot have both the docker-py and docker python modules installed together as they use the same namespace and cause a corrupt installation
- 照这人做的来,即先执行
pip uninstall docker docker-py docker-compose
,再执行pip install docker-compose
重新安装。
- …”django.db.utils.ProgrammingError: relation \”main_organization\” does not exist”, “LINE 1: SELECT COUNT(*) AS \”__count\” FROM \”main_organization\””, ” ^”], “stdout”: “”, “stdout_lines”: []}
-
长达几页的报错,这里只记载了最后几行。根据此人所述,这时要做的只是……稍等一会儿再安装一遍。
-
👆不好使。更好用的办法在这里。将
awx/installer/inventory
中的create_preload_data=True
改成False
再安装。
关于inventory的修改
- 安装前强烈建议修改inventory,以解决代理,仓库位置以及数据库位置等问题:
# Common Docker parameters
postgres_data_dir=/pgdocker
# Proxy
http_proxy=http://<代理地址>
https_proxy=http://<代理地址>
# AWX project data folder. If you need access to the location where AWX stores the projects
# it manages from the docker host, you can set this to turn it into a volume for the container.
project_data_dir=/var/lib/awx/projects