prepare-docker-dind: make docker start optional 40/88240/2
authorMichal Zegan <m.zegan@samsung.com>
Wed, 22 May 2019 12:03:44 +0000 (14:03 +0200)
committerMichal Zegan <m.zegan@samsung.com>
Fri, 24 May 2019 09:46:17 +0000 (11:46 +0200)
This change makes it possible to disable docker start after
prepare-docker-dind role executes.
Needed for docker role that wants to start docker by itself.
Note that the docker role also tries to install docker by itself, and
prepare-docker-dind does the same.
The reason is that it makes it possible to fix the version of installed docker.

Change-Id: I7487bc46b316c0e6c782b22d8e24afea35c3c2d5
Issue-ID: OOM-1863
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/test/roles/prepare-docker-dind/defaults/main.yml [new file with mode: 0644]
ansible/test/roles/prepare-docker-dind/handlers/main.yml

diff --git a/ansible/test/roles/prepare-docker-dind/defaults/main.yml b/ansible/test/roles/prepare-docker-dind/defaults/main.yml
new file mode 100644 (file)
index 0000000..2489014
--- /dev/null
@@ -0,0 +1,3 @@
+---
+# Variable specifying if we should install docker, or only prepare for it
+start_docker: true
index 698e3d3..cfea773 100644 (file)
@@ -3,3 +3,4 @@
     name: docker
     enabled: true
     state: restarted
+  when: start_docker == true