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:
parent
9bc02f58b8
commit
adbbc841e0
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue