1
0
Fork 0

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.
This commit is contained in:
saibotk 2022-01-02 23:42:53 +01:00
parent 9bc02f58b8
commit adbbc841e0
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -9,9 +9,8 @@ RUN true \
RUN true \ RUN true \
&& apt-get update \ && apt-get update \
&& apt-get install -y gpg \ && 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-get update \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 \ && apt-get install -y ansible python3-requests python3-influxdb python3-netaddr \
&& apt-get install -y gpg ansible python3-requests python3-influxdb python3-netaddr \
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \ && apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
&& true && true