Install docker-buildx for Ubuntu

Since docker 23, the legacy builder is deprecated. It is needed
to install the package "docker-buildx".

Output example:
root@u22ovn:/tmp# docker build -t frr frr_docket
DEPRECATED: The legacy builder is deprecated and will be removed in a
            future release. Install the buildx component to build
            images with BuildKit:
            https://docs.docker.com/go/buildx/

This package is not present in CentOS nor Fedora.

Related-Bug: #2088166
Change-Id: I8024fc8c0b73c52044826c9850d20ecc6fbb2fb6
This commit is contained in:
Rodolfo Alonso Hernandez 2024-11-14 12:08:11 +00:00
parent a0593c77f8
commit 0285aadf0c

View File

@ -4,6 +4,14 @@
name: docker.io
state: present
- name: Install docker-buildx (only for Ubuntu and Debian)
become: yes
package:
name: docker-buildx
state: present
when:
- (ansible_facts['distribution'] | lower) in ['ubuntu', 'debian']
- name: Copy 52_docker_for_tempest to /etc/sudoers.d
copy:
src: 52_docker_for_tempest