diff --git a/scripts/ansible b/scripts/ansible index 0aa812e25..d1f049cd8 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -92,10 +92,12 @@ if [ ! -f /etc/debian_version ]; then # e.g. RaspiOS, Ubuntu, Mint & Debian exit 1 fi -echo -e "\napt update; install dirmngr; PPA to /etc/apt/sources.list.d/iiab-ansible.list\n" -$APT_PATH/apt update -$APT_PATH/apt -y install dirmngr -echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu $CODENAME main" \ +# JV just manually use the key from this repo 2021-04-22 +echo -e "\napt update; use local keys for PPA in /etc/apt/sources.list.d/iiab-ansible.list\n" +#$APT_PATH/apt update +#$APT_PATH/apt -y install dirmngr + +echo "deb [signed-by=/opt/iiab/iiab/scripts/iiab-ansible.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu $CODENAME main" \ > /etc/apt/sources.list.d/iiab-ansible.list # In future we might instead consider 'add-apt-repository ppa:ansible/ansible' # or 'apt-add-repository ppa:ansible/bionic/ansible' etc, e.g. for streamlined @@ -110,8 +112,9 @@ echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu $CODENAME main" \ #echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu disco main" \ # > /etc/apt/sources.list.d/iiab-ansible.list -echo -e '\nIF YOU FACE ERROR "signatures couldn'"'"'t be verified because the public key is not available" THEN REPEATEDLY RE-RUN "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 93C4A3FD7BB9C367"\n' -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 93C4A3FD7BB9C367 +# JV 2021-04-22 +#echo -e '\nIF YOU FACE ERROR "signatures couldn'"'"'t be verified because the public key is not available" THEN REPEATEDLY RE-RUN "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 93C4A3FD7BB9C367"\n' +#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 93C4A3FD7BB9C367 echo -e 'PPA source "deb http://ppa.launchpad.net/ansible/ansible/ubuntu '$CODENAME' main"' echo -e "successfully saved to /etc/apt/sources.list.d/iiab-ansible.list\n" echo -e "IF *OTHER* ANSIBLE SOURCES APPEAR BELOW, PLEASE MANUALLY REMOVE THEM TO" diff --git a/scripts/iiab-ansible.gpg b/scripts/iiab-ansible.gpg new file mode 100644 index 000000000..d6f75bbc5 Binary files /dev/null and b/scripts/iiab-ansible.gpg differ