安装Ansible 2.6或更旧版本

时间:2018-09-28 16:59:32

标签: apt-get

在2.6.2中,ansible开始忽略世界可写目录中的配置文件,从而使许多Windows /无用设置变得无用。我尝试安装Ansible 2.6或更早版本。

系统:

ID

propvision.sh指出

Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-132-generic x86_64)

我将其调整为

# Add Ansible Repository & Install Ansible
sudo add-apt-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible && sudo touch /root/ansible_ready

,但找不到该版本。如何获得2.5或2.6?我对linux以及没有通过双击安装某些东西的概念没有任何经验。

1 个答案:

答案 0 :(得分:1)

要在Trusty Tahr 14.04(LTS)上安装Ansible 2.6版,请执行以下命令:

sudo apt update
sudo apt install -y software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367

添加适当的来源列表:

sudo tee -a /etc/apt/sources.list.d/ansible-2.6.list << EOF
deb http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu trusty main
deb-src http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu trusty main
EOF

更新apt并安装Ansible:

sudo apt update
sudo apt install -y ansible