Skip to content

Commit

Permalink
use ansible_architecture to support ARM environments
Browse files Browse the repository at this point in the history
Signed-off-by: ahmadali shafiee <mail@ahmadalli.net>
  • Loading branch information
ahmadalli committed May 9, 2023
1 parent 6be07a8 commit 4044598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/docker/compose/vars/urls.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=none

_docker_composer_file_ending: "{{ansible_system}}-{{ansible_userspace_architecture}}"
_docker_composer_file_ending: "{{ansible_system}}-{{ansible_architecture}}"
_docker_composer_v2_0_0_file_ending: "{{ ansible_system | lower }}-{{ 'amd64' if ansible_architecture | lower == 'x86_64' else ansible_architecture }}"
_docker_composer_file_name: docker-compose-{{ _docker_composer_v2_0_0_file_ending if (docker_compose_version | default('latest', true) == '2.0.0') else _docker_composer_file_ending }}
_docker_compose_download_url: https://github.com/docker/compose/releases/{{ 'latest/download' if docker_compose_version | default('latest', true) == 'latest' else 'download/' + docker_compose_version }}/{{ _docker_composer_file_name }}
Expand Down

0 comments on commit 4044598

Please sign in to comment.