From a87d41d2bc0f317ed90db1276257671a4825b2ff Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 5 Apr 2018 02:57:11 -0400 Subject: [PATCH] let's not restrict PPA repo to Ansible 2.4.x if poss? --- scripts/ansible | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/ansible b/scripts/ansible index 21a81d49f..c278a9a80 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -41,7 +41,8 @@ if ! which ansible-playbook ; then elif [ -f /etc/debian_version ] || (grep -qi raspbian /etc/*elease) ; then if ( ! grep -qi ansible /etc/apt/sources.list) && [ ! -f /etc/apt/sources.list.d/ansible ]; then apt -y install dirmngr python-pip python-setuptools python-wheel patch - echo "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" \ + # echo "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" \ + echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" \ >> /etc/apt/sources.list.d/ansible.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 fi @@ -50,6 +51,7 @@ if ! which ansible-playbook ; then # Parens are optional, but greatly clarify :) elif (grep -qi ubuntu /etc/lsb-release) || (grep -qi ubuntu /etc/os-release); then apt -y install python-pip python-setuptools python-wheel patch + # apt-add-repository -y ppa:ansible/ansible-2.4 apt-add-repository -y ppa:ansible/ansible # FOUND="true" # FAMILY="debian" @@ -83,7 +85,7 @@ if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/o # Align IIAB with Ansible community's latest official release echo "Using apt to check for updates, then install/upgrade ansible" apt update - apt -y install ansible + apt -y install ansible=2.4* # TEMPORARILY USE ANSIBLE 2.4.2 DUE TO 2.4.3 MEMORY BUG. DETAILS @ https://github.com/iiab/iiab/issues/669 #echo "Install http://download.iiab.io/packages/ansible_2.4.2.0-1ppa~xenial_all.deb"