我想通过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