Skip to content

Commit

Permalink
Fix ansible docker role
Browse files Browse the repository at this point in the history
- Rename buildx binary to have the correct name in order to recognized
  as cli-plugin
- Fix docker buildx version command
  • Loading branch information
theodore86 committed Apr 15, 2023
1 parent 315f922 commit 7966716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions provisioners/ansible/roles/docker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ docker_config:
dns: '{{ docker_dns_servers }}'
insecure-registries: '{{ docker_insecure_registries }}'
registry-mirrors: '{{ docker_registries_mirror }}'
features:
buildkit: true
builder:
gc:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions provisioners/ansible/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@
- name: 'Get Docker buildx plugin'
get_url:
url: '{{ docker_buildx_download_url }}'
dest: '{{ ansible_env.HOME }}/.docker/cli-plugins/docker_buildx'
dest: '{{ ansible_env.HOME }}/.docker/cli-plugins/docker-buildx'
mode: '0550'
when: 'docker_buildx_install | bool'

- name: 'Verify Docker buildx installation'
shell: 'docker buildx --version'
shell: 'docker buildx version'
args:
executable: '/bin/bash'
changed_when: false
Expand Down

0 comments on commit 7966716

Please sign in to comment.