Files
ansible-automations/roles/docker/tasks/buildx.yml
Noah Knegt 3cea6153e9
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Add docker buildx to the install steps
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-04-06 10:05:50 +02:00

25 lines
871 B
YAML

# ===================================================================================================
# ? 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