summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2017-11-29 16:12:06 +0200
committerBenjamin Copeland <ben.copeland@linaro.org>2017-11-29 15:03:23 +0000
commitfa4b4234f476bbd6cff9e54dbde131e901fd15fd (patch)
treeffc22b8ff0c969857b9091461387b022f9fee608
parentb0f24fb214b083d98a686ba210ab1e7d58a2d754 (diff)
downloadansible-playbooks-fa4b4234f476bbd6cff9e54dbde131e901fd15fd.tar.gz
obs-worker: switch to docker-ce
Update to latest docker-ce from OBS repos Change-Id: Ic553e88181d1c4fdd35e0251e47e764630d042f8 Reviewed-on: https://review.linaro.org/22734 Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>
-rw-r--r--roles/obs-worker/tasks/main.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/obs-worker/tasks/main.yml b/roles/obs-worker/tasks/main.yml
index 72bb611a..18391695 100644
--- a/roles/obs-worker/tasks/main.yml
+++ b/roles/obs-worker/tasks/main.yml
@@ -1,7 +1,15 @@
+- name: Add OBS apt key
+ apt_key:
+ url: http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0/Release.key
+ state: present
+- name: Add OBS overlay repository
+ apt_repository:
+ repo: deb http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0/ ./
+ state: present
- name: Install Docker
- apt: pkg={{item}} state=installed
+ apt: pkg={{item}} state=installed update_cache=yes
with_items:
- - docker.io
+ - docker-ce
- python-pip
tags:
- update