aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-11-15 09:37:47 +0100
committerHarald Welte <laforge@osmocom.org>2020-11-15 10:01:03 +0100
commite6c46260daadfb06d591adc908eac9487e65be3f (patch)
tree9b7e4583e1369dde0e5a3d38f49e2b8a20158e1b /ansible/roles
parentf8b97377286e9f390dfda250eab1335d95209837 (diff)
ansible/docker: Use docker.io on architectures not supported by docker-ce
The docker company official builds are only present for amd64, but not for other architectures. Let's use the Debian docker.io package in such situations. Change-Id: Id85137fc0eb7fa5e2b31aa928c78bfdaadc281ac
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/docker/tasks/main.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml
index 2dbe47b..c38d38b 100644
--- a/ansible/roles/docker/tasks/main.yml
+++ b/ansible/roles/docker/tasks/main.yml
@@ -22,9 +22,15 @@
update_cache: yes
when: ansible_distribution == "Debian"
-- name: install docker
+- name: install docker.io from Debian
+ apt:
+ name: docker.io
+ when: ansible_architecture != 'x86_64'
+
+- name: install docker-ce
apt:
name: docker-ce
+ when: ansible_architecture == 'x86_64'
- name: add jenkins to the docker group
user: