mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
pin Ansible to 2.4.x for now (e.g. "pip install ansible==2.4.4.0" on OLPC)
This commit is contained in:
parent
24b99e31fd
commit
c7e611b755
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Installs or upgrades to the best possible Ansible release, so iiab-install
|
# Installs or upgrades to the best possible Ansible release, so iiab-install
|
||||||
# can proceed. Ensure you're online before running this script!
|
# can proceed. Ensure you're online before running this script!
|
||||||
|
|
||||||
GOOD_VER="2.5.0" # Ansible version for OLPC, for pip.
|
GOOD_VER="2.4.4" # Ansible version for OLPC, for pip.
|
||||||
# On other OS's we install/upgrade to the latest Ansible.
|
# On other OS's we install/upgrade to the latest Ansible.
|
||||||
# Pin all to 2.5.x in future, if really/truly nec?
|
# Pin all to 2.5.x in future, if really/truly nec?
|
||||||
CURR_VER="undefined"
|
CURR_VER="undefined"
|
||||||
|
@ -41,7 +41,7 @@ if ! which ansible-playbook ; then
|
||||||
elif [ -f /etc/debian_version ] || (grep -qi raspbian /etc/*elease) ; 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
|
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
|
apt -y install dirmngr python-pip python-setuptools python-wheel patch
|
||||||
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" \
|
echo "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" \
|
||||||
>> /etc/apt/sources.list.d/ansible.list
|
>> /etc/apt/sources.list.d/ansible.list
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue