Files
ansible-automations/roles/docker/tasks/buildx.yml

25 lines
871 B
YAML
Raw Normal View History

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