added support for docker-compose on aarch64
This commit is contained in:
parent
945a0ab783
commit
8c73fe8f97
1 changed files with 7 additions and 3 deletions
|
@ -45,9 +45,13 @@
|
|||
|
||||
#install compose:
|
||||
|
||||
- name: download compose
|
||||
# shell: curl -L https://github.com/docker/compose/releases/download/{{ compose_ver }}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
|
||||
- name: download compose for x86_64
|
||||
shell: curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url | grep docker-compose-linux-x86_64 | grep -v sha256 | cut -d '"' -f 4 | wget -O /usr/local/bin/docker-compose -qi -
|
||||
when: ansible_architecture == 'x86_64'
|
||||
|
||||
- name: download compose for aarch64
|
||||
shell: curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url | grep docker-compose-linux-aarch64 | grep -v sha256 | cut -d '"' -f 4 | wget -O /usr/local/bin/docker-compose -qi -
|
||||
when: ansible_architecture == 'aarch64'
|
||||
|
||||
- name: make compose executable
|
||||
shell: chmod +x /usr/local/bin/docker-compose
|
||||
shell: chmod +x /usr/local/bin/docker-compose
|
||||
|
|
Loading…
Reference in a new issue