Add docker buildx to the install steps
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
24
roles/docker/tasks/buildx.yml
Normal file
24
roles/docker/tasks/buildx.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 06-04-2023
|
||||
# @description : This will make sure that docker buildx is installed.
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Check for docker-buildx
|
||||
shell: docker buildx version
|
||||
register: docker_buildx
|
||||
ignore_errors: true
|
||||
|
||||
- name: Install docker-buildx
|
||||
package:
|
||||
name: docker-buildx
|
||||
state: present
|
||||
when: docker_buildx.stdout is not defined
|
||||
|
||||
- name: Alias docker-buildx
|
||||
shell: docker buildx install
|
||||
when: docker_buildx.stdout is not defined
|
Reference in New Issue
Block a user