Add docker buildx to the install steps
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2023-04-06 10:05:50 +02:00
parent a6ddad8a69
commit 3cea6153e9
3 changed files with 27 additions and 0 deletions

View 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