From adbbc841e0c4fc16a5033c6d565259a03ca475c2 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 2 Jan 2022 23:42:53 +0100 Subject: [PATCH] Use add-apt-repository to correctly add ppa The previously configured repository was not used, might be due to the manual method for deploying this source list entry. Maybe they changed it with newer Ubuntu versions, nonetheless we now use the add-apt-repository command which should also select the correct ubuntu version of the PPA. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b0fd39..63a2fe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,8 @@ RUN true \ RUN true \ && apt-get update \ && apt-get install -y gpg \ - && echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main" > /etc/apt/sources.list.d/ansible.repo \ + && add-apt-repository ppa:ansible/ansible \ && apt-get update \ - && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 \ - && apt-get install -y gpg ansible python3-requests python3-influxdb python3-netaddr \ + && apt-get install -y ansible python3-requests python3-influxdb python3-netaddr \ && apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \ && true