summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-05-14 11:53:53 -0400
committerSteve Milner <smilner@redhat.com>2017-05-14 11:53:55 -0400
commit08787d246ace705ae2fd0ef6b519e59ee668e357 (patch)
tree49776cb8dd08e8cb081964a81a58f6edab2ff120 /roles/docker/tasks
parent9cbe2b7bbfc3e4e8321a8a483ef452cb9d5611c7 (diff)
downloadopenshift-08787d246ace705ae2fd0ef6b519e59ee668e357.tar.gz
openshift-08787d246ace705ae2fd0ef6b519e59ee668e357.tar.bz2
openshift-08787d246ace705ae2fd0ef6b519e59ee668e357.tar.xz
openshift-08787d246ace705ae2fd0ef6b519e59ee668e357.zip
Add docker package for container-engine install
The package is required so that openshift_facts is able to use the docker client to gain information on the versions.
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/systemcontainer_docker.yml26
1 files changed, 15 insertions, 11 deletions
diff --git a/roles/docker/tasks/systemcontainer_docker.yml b/roles/docker/tasks/systemcontainer_docker.yml
index 4cea266cc..c85801546 100644
--- a/roles/docker/tasks/systemcontainer_docker.yml
+++ b/roles/docker/tasks/systemcontainer_docker.yml
@@ -27,6 +27,20 @@
state: present
when: not openshift.common.is_atomic | bool
+# Make sure Docker is installed so we are able to use the client
+- name: Install Docker so we can use the client
+ package: name=docker{{ '-' + docker_version if docker_version is defined else '' }} state=present
+ when: not openshift.common.is_atomic | bool
+
+# Make sure docker is disabled. Errors are ignored.
+- name: Disable Docker
+ systemd:
+ name: docker
+ enabled: no
+ state: stopped
+ daemon_reload: yes
+ ignore_errors: True
+
# Set http_proxy and https_proxy in /etc/atomic.conf
- block:
@@ -78,17 +92,7 @@
command: "atomic pull --storage ostree {{ l_docker_image }}"
changed_when: false
-# Make sure docker is disabled Errors are ignored as docker may not
-# be installed.
-- name: Disable Docker
- systemd:
- name: docker
- enabled: no
- state: stopped
- daemon_reload: yes
- ignore_errors: True
-
-- name: Ensure docker.service.d directory exists
+- name: Ensure container-engine.service.d directory exists
file:
path: "{{ container_engine_systemd_dir }}"
state: directory