环境:centos7、python-2.7.8、ansible-1.7.2、ansible-cmdb-1.27
安装:
方法1:pip 方式安装
1.首先安装epel扩展源:
yum -y install epel-release
2.更新完成之后,就可安装、升级pip:
yum -y install python-pip
pip install --upgrade pip
3.安装ansible-cmdb
pip install ansible-cmdb
屏显:
[root@mtserver ~]# pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 714kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-18.0
[root@mtserver ~]# pip install ansible-cmdb
/usr/lib/python2