1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Add repo for ansible-2.4 alone (avoids upgrades to 2.5.x upon "apt update" etc)

This commit is contained in:
A Holt 2018-04-05 03:53:03 -04:00 committed by GitHub
parent 7741f4a651
commit be73c0f789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,8 +42,8 @@ if [[ ! `command -v 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/ubuntu xenial main" \
>> /etc/apt/sources.list.d/ansible.list # >> /etc/apt/sources.list.d/ansible.list
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" \
>> /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
@ -53,7 +53,7 @@ if [[ ! `command -v ansible-playbook` ]]; then
# Parens are optional, but greatly clarify :) # Parens are optional, but greatly clarify :)
elif (grep -qi ubuntu /etc/lsb-release) || (grep -qi ubuntu /etc/os-release); then 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 -y install python-pip python-setuptools python-wheel patch
apt-add-repository -y ppa:ansible/ansible #apt-add-repository -y ppa:ansible/ansible
apt-add-repository -y ppa:ansible/ansible-2.4 apt-add-repository -y ppa:ansible/ansible-2.4
# FOUND="true" # FOUND="true"
# FAMILY="debian" # FAMILY="debian"