首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装正确版本的Ansible

无法安装正确版本的Ansible
EN

Stack Overflow用户
提问于 2022-03-16 06:38:48
回答 1查看 1.3K关注 0票数 0

我安装了ansible==5.0,但是所需的是在2.10-2.11之间。现在,每次我尝试删除它时,它都是WARNING: Skipping ansible as it is not installed.,但是当我运行命令ansible --version时,输出显示ansible安装在ansible [core 2.12.3]版本中。

我还试图在上面安装所需的版本,该版本再次成功安装,但是当version命令再次运行时,它显示了以前的版本。

代码语言:javascript
复制
(kolla-ansible-venv) root@ubuntu:/home/kypo/Desktop# sudo pip3 uninstall --yes ansible
WARNING: Skipping ansible as it is not installed.
(kolla-ansible-venv) root@ubuntu:/home/kypo/Desktop# apt remove ansible
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'ansible' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libfwupdplugin1 libllvm10
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
(kolla-ansible-venv) root@ubuntu:/home/kypo/Desktop# ansible --version
ansible [core 2.12.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/kolla-ansible-venv/lib/python3.8/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /home/kolla-ansible-venv/bin/ansible
python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]
jinja version = 3.0.3
libyaml = True
(kolla-ansible-venv) root@ubuntu:/home/kypo/Desktop# sudo pip uninstall --yes ansible
WARNING: Skipping ansible as it is not installed.
(kolla-ansible-venv) root@ubuntu:/home/kypo/Desktop# 

实际上,我希望通过遵循链接来安装openstack。

EN

回答 1

Stack Overflow用户

发布于 2022-03-20 07:27:29

请删除从ansible服务器添加应用程序或创建新的VM,并在服务器中安装gitpython3python3-pip,然后克隆Kolla-ansible repo并安装requirement.txt文件中的所有依赖项。这是安装无依赖关系的kolla-ansible最简单的方法。

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

https://stackoverflow.com/questions/71492711

复制
相关文章

相似问题

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