summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Sedovic <tomas@sedovic.cz>2017-10-18 14:40:59 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-10-18 14:40:59 +0200
commit332f131e8e6457a03a4f1ab19abc8e4ceb897307 (patch)
treee330e4457f9068c3f5f1c88a5a786b7336578f46
parentd20b0f90098fa40c0925d317fc4c5c30584ed861 (diff)
parent5a6c1927828d942ebe4c71861521c0dae6545011 (diff)
downloadopenshift-332f131e8e6457a03a4f1ab19abc8e4ceb897307.tar.gz
openshift-332f131e8e6457a03a4f1ab19abc8e4ceb897307.tar.bz2
openshift-332f131e8e6457a03a4f1ab19abc8e4ceb897307.tar.xz
openshift-332f131e8e6457a03a4f1ab19abc8e4ceb897307.zip
Merge branch 'docker-storage-setup' into openshift-ansible-source
-rw-r--r--roles/docker-storage-setup/tasks/main.yaml18
1 files changed, 17 insertions, 1 deletions
diff --git a/roles/docker-storage-setup/tasks/main.yaml b/roles/docker-storage-setup/tasks/main.yaml
index dbff85662..8606eeba4 100644
--- a/roles/docker-storage-setup/tasks/main.yaml
+++ b/roles/docker-storage-setup/tasks/main.yaml
@@ -26,5 +26,21 @@
- ansible_distribution_version | version_compare('7.4', '<')
- ansible_distribution == "RedHat"
+- block:
+ - name: create the docker-storage-setup config file for CentOS
+ template:
+ src: "{{ role_path }}/templates/docker-storage-setup-dm.j2"
+ dest: /etc/sysconfig/docker-storage-setup
+ owner: root
+ group: root
+ mode: 0644
+
+ # TODO(shadower): Find out which CentOS version supports overlayfs2
+ when:
+ - ansible_distribution == "CentOS"
+
+- name: Install Docker
+ package: name=docker state=present
+
- name: start docker
- service: name=docker state=started enabled=true
+ service: name=docker state=restarted enabled=true