gpt4 book ai didi

ansible - 将 Ansible 1.9.4 更新到 Ansible 2.0

转载 作者:行者123 更新时间:2023-12-04 04:43:40 24 4
gpt4 key购买 nike

我已经卸载了 ansible 1.9.4 并安装了 sudo apt-get install ansible ,版本 2.0.2。
但是当我执行时:

ikerlan$ ansible --version
ansible 1.9.4

我已经使用 ansible ppa 卸载并重新安装,安装时我可以看到:
Preparing to unpack .../ansible_2.0.0.2-1ppa~trusty_all.deb ...
Unpacking ansible (2.0.0.2-1ppa~trusty) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Configurando ansible (2.0.0.2-1ppa~trusty) ...
Processing triggers for python-support (1.0.15) ...

但是如果我检查ansible版本:
ikerlan@ikerlan-docker:~$ ansible --version
ansible 1.9.4
configured module search path = None

如果我运行下一个:
ikerlan@ikerlan-docker:~$ sudo dpkg -l | grep ansible
ii ansible 2.0.0.2-1ppa~trusty all A radically simple IT automation platform

有什么帮助吗?谢谢

最佳答案

这是升级它的正确方法。即使正确安装 ansible 也不会更改版本。我在这里找到的解决方案效果很好。
https://groups.google.com/forum/#!topic/ansible-project/eCtBp2aDtCQ

sudo -H pip install --upgrade ansible

只需运行此命令即可升级并修复我们使用 ansible --version 检查的版本

它将像现在一样升级到最新的 2.1

关于ansible - 将 Ansible 1.9.4 更新到 Ansible 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34903026/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com