added support for aarch64 and ubuntu release in variables
This commit is contained in:
parent
1509f57513
commit
945a0ab783
1 changed files with 9 additions and 4 deletions
|
@ -7,14 +7,19 @@
|
||||||
pkg:
|
pkg:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- curl
|
- curl
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
|
|
||||||
- name: Add docker repo key
|
- name: Add docker repo key
|
||||||
shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||||||
|
|
||||||
- name: add repo for docker
|
- name: add repo for docker for x86_64
|
||||||
shell: echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | tee /etc/apt/sources.list.d/docker.list
|
shell: echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list
|
||||||
|
when: ansible_architecture == 'x86_64'
|
||||||
|
|
||||||
|
- name: add repo for docker for aarch64
|
||||||
|
shell: echo "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list
|
||||||
|
when: ansible_architecture == 'aarch64'
|
||||||
|
|
||||||
- name: Update repositories cache
|
- name: Update repositories cache
|
||||||
apt:
|
apt:
|
||||||
|
@ -45,4 +50,4 @@
|
||||||
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 -
|
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 -
|
||||||
|
|
||||||
- name: make compose executable
|
- 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