技术

Ansible1.7更新至2.6版本

September 26, 2018

因为想用ansible tower了...但3.2版本至少要ansible2+
前提:python2.6以上
1.首先备份原来的主机配置文件

cp /etc/ansible/hosts ~/hosts

2.卸载ansible

pip uninstall ansible #因为我是pip安装的
#brew安装的参考如下卸载办法
#brew update
#brew uninstall ansible19
#brew uninstall ansible
#brew cleanup -s
#brew install ansible

3.安装最新版本
因为懒...还是走yum吧

yum -y update
yum -y install ansible
ansible --version
cp ~/hosts /etc/ansible/
#完成

添加新评论