百胜安装不同版本的ansible然后声明。

时间:2016-07-21 16:05:36

标签: ansible redhat yum

我想通过yum(yum install ansible)安装ansible 2.1。 yum info声明当我安装它时版本是2.1我得到了以前的版本。

我尝试过清洁yum,完全删除ansible并安装(yum remove ansible然后yum install ansible

[root@server /]# ansible --version
ansible 2.0.0.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
Traceback (most recent call last):
  File "/bin/ansible", line 124, in <module>
    shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
AttributeError: 'module' object has no attribute 'DEFAULT_LOCAL_TMP'

[root@server /]# yum list installed ansible
Loaded plugins: fastestmirror, priorities
Repository epel is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: bay.uchicago.edu
 * epel: mirror.steadfast.net
 * extras: centos.chicago.waneq.com
 * updates: mirrors.tripadvisor.com
 * webtatic: us-east.repo.webtatic.com
Installed Packages
ansible.noarch                                          2.1.0.0-1.el7                                          @epel

在另一台服务器上,ansible --version表示它是2.1

0 个答案:

没有答案