一个同事误删了/etc/awx/settings.py 造成AWX 不能正常使用。
当时的想法就是重新安装AWX。现在想想,如果在首次安装后没有对settings.py 进行过修改,可以直接从安装包里恢复就行。不过要根据awx-setup-1.3.1/group_vars/all 里的值对awx-setup-1.3.1/roles/awx_install/templates/settings.py.j2 里的变量进行初始化。
# Uninstall the current one
apt-get remove awx
# Install AWX
awx-setup-1.3.1# ./setup.sh
不过遇到了下面的错误:
TASK: [create awx database schema]********************************************
failed: [127.0.0.1] => {"changed": true,"cmd": ["awx-manage", "syncdb","--noinput"], "delta": "0:00:00.694911","end": "2013-11-21 01:30:39.462253", "item":"", "rc": 1, "start": "2013-11-2101:30:38.767342"}
stderr: Traceback (most recent call last):
File"/usr/bin/awx-manage", line 9, in <module>
load_entry_point('awx==