mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
add dirmngr so apt-key works
This commit is contained in:
parent
88cd7d0fb6
commit
8804ac9263
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,7 @@ URL="NA"
|
||||||
# TODO add check for version - to revese patching if upgrading
|
# TODO add check for version - to revese patching if upgrading
|
||||||
if [ $(which ansible-playbook) ]; then
|
if [ $(which ansible-playbook) ]; then
|
||||||
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
|
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
|
||||||
GOOD_VER="$VER | grep 2.4 | wc -l"
|
GOOD_VER=`echo $VER | grep 2.4 | wc -l`
|
||||||
if [ $VER = "2.2.0.0" ]; then
|
if [ $VER = "2.2.0.0" ]; then
|
||||||
echo "Ansible $VER installed updating to 2.4.0"
|
echo "Ansible $VER installed updating to 2.4.0"
|
||||||
pip install --upgrade ansible==2.4.0 --disable-pip-version-check
|
pip install --upgrade ansible==2.4.0 --disable-pip-version-check
|
||||||
|
@ -54,6 +54,7 @@ fi
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
# might pickup usbmount confirm ppa location
|
# might pickup usbmount confirm ppa location
|
||||||
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
|
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
|
||||||
|
apt-get -y install dirmngr
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
apt-get -y install ansible git python-pip python-setuptools python-wheel patch
|
apt-get -y install ansible git python-pip python-setuptools python-wheel patch
|
||||||
|
@ -63,6 +64,7 @@ if [ -f /etc/debian_version ]; then
|
||||||
fi
|
fi
|
||||||
if [ `grep -qi ubuntu /etc/lsb-release` ] || [ `grep -qi ubuntu /etc/os-release` ]; then
|
if [ `grep -qi ubuntu /etc/lsb-release` ] || [ `grep -qi ubuntu /etc/os-release` ]; then
|
||||||
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
|
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
|
||||||
|
apt-get -y install dirmngr
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
# confirm PPA location
|
# confirm PPA location
|
||||||
|
@ -77,6 +79,7 @@ fi
|
||||||
# Has 2.2.1
|
# Has 2.2.1
|
||||||
if [ `grep -qi raspbian /etc/*elease` ]; then
|
if [ `grep -qi raspbian /etc/*elease` ]; then
|
||||||
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
|
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
|
||||||
|
apt-get -y install dirmngr
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
apt-get -y install ansible git python-pip python-setuptools python-wheel patch
|
apt-get -y install ansible git python-pip python-setuptools python-wheel patch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue