我安装了
ansible==5.0
,但要求介于
2.10-2.11
。每次我试着把它取下来的时候,上面都写着
WARNING: Skipping ansible as it is not installed.
但当我运行命令时
ansible --version
,输出显示ansible已安装版本
ansible [core 2.12.3]
我还尝试在它上面安装所需的版本,该版本再次成功安装,但当版本命令再次运行时,它会显示以前的版本。
(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
this
链接