gpt4 book ai didi

ansible - 如何安装旧版本的ansible?

转载 作者:行者123 更新时间:2023-12-04 16:42:36 27 4
gpt4 key购买 nike

我需要安装ansible 2.1.0.0-1.el7。我的设置不适用于我安装的最新版本的ansible:

yum -y --enablerepo=epel install ansible

这给了我 ansible-2.2.0.0-3.el7.noarch。因此,我尝试列出较旧的版本,但找不到它们:
# yum -y --enablerepo=epel --showduplicates list ansible
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror2.hs-esslingen.de
* epel: epel.mirrors.ovh.net
* extras: it.centos.contactlab.it
* updates: mirror.netcologne.de
Available Packages
ansible.noarch 2.2.0.0-3.el7 epel

我在 This is a site上找到了多个版本,但不知道如何安装。

有人可以帮助我安装所需的Ansible版本吗?

最佳答案

您应该使用python pip安装它。

sudo yum install python-pip python-devel python

进而:
sudo pip install pip --upgrade
sudo pip install ansible==2.1.0.0

现在您应该可以使用:
ansible-playbook ...

如果您无法使用我给您的命令安装pip,请在此处查看: https://packaging.python.org/install_requirements_linux/

关于ansible - 如何安装旧版本的ansible?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40661622/

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