如何安装较旧的ansible包?
How to install older package of ansible?
我需要安装 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 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/