首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装ansible-awx

无法安装ansible-awx
EN

Stack Overflow用户
提问于 2017-11-14 06:23:08
回答 1查看 1.3K关注 0票数 0

我正在尝试安装AWX,但是它失败了,错误如下

版本信息

代码语言:javascript
复制
ansible --version
ansible 2.4.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.6.6 (r266:84292, Aug 18 2016, 08:36:59) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]

docker --version

代码语言:javascript
复制
Docker version 1.6.1, build a8a31ef/1.6.1

pip install docker-py --trusted-host pypi.python.org
Requirement already satisfied: docker-py in /usr/lib/python3.6/site-packages
Requirement already satisfied: websocket-client>=0.32.0 in /usr/lib/python3.6/site-packages (from docker-py)
Requirement already satisfied: requests!=2.11.0,>=2.5.2 in /usr/lib/python3.6/site-packages (from docker-py)
Requirement already satisfied: six>=1.4.0 in /usr/lib/python3.6/site-packages (from docker-py)
Requirement already satisfied: docker-pycreds>=0.2.1 in /usr/lib/python3.6/site-packages (from docker-py)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python3.6/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.6/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)

错误

代码语言:javascript
复制
 ansible-playbook -i inventory install.yml

PLAY [Build and deploy AWX] **************************************************************************************************************************************************************************************************

TASK [check_vars : include_tasks] ********************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [check_vars : include_tasks] ********************************************************************************************************************************************************************************************
included: /root/awx-devel/installer/check_vars/tasks/check_docker.yml for localhost

TASK [check_vars : postgres_data_dir should be defined] **********************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "failed": false,
    "msg": "All assertions passed"
}

TASK [check_vars : host_port should be defined] ******************************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "failed": false,
    "msg": "All assertions passed"
}

TASK [image_build : Get Version from checkout if not provided] ***************************************************************************************************************************************************************
changed: [localhost -> localhost]

TASK [image_build : Set global version if not provided] **********************************************************************************************************************************************************************
ok: [localhost]

TASK [image_build : Verify awx-logos directory exists for official install] **************************************************************************************************************************************************
skipping: [localhost]

TASK [image_build : Copy logos for inclusion in sdist] ***********************************************************************************************************************************************************************
skipping: [localhost]

TASK [image_build : Set sdist file name] *************************************************************************************************************************************************************************************
ok: [localhost]

TASK [image_build : AWX Distribution] ****************************************************************************************************************************************************************************************
ok: [localhost] => {
    "msg": "awx-.tar.gz"
}

TASK [image_build : Stat distribution file] **********************************************************************************************************************************************************************************
ok: [localhost -> localhost]

TASK [image_build : Clean distribution] **************************************************************************************************************************************************************************************
changed: [localhost -> localhost]

TASK [image_build : Build sdist builder image] *******************************************************************************************************************************************************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to import docker-py - No module named requests.exceptions. Try `pip install docker-py`"}
        to retry, use: --limit @/root/awx-devel/installer/install.retry

PLAY RECAP *******************************************************************************************************************************************************************************************************************
localhost                  : ok=9    changed=2    unreachable=0    failed=1

有人能指出我做错了什么吗?

此外,我们是否可以像其他任何应用程序一样,在没有坞/容器的虚拟机中安装AWX?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-14 06:35:19

Ansible告诉你:

代码语言:javascript
复制
python version = 2.6.6

Pip告诉你:

代码语言:javascript
复制
Requirement already satisfied: docker-py in /usr/lib/python3.6/site-packages

比较上面的Python版本号和fix。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47278943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档