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:
parent
7741f4a651
commit
be73c0f789
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue