summaryrefslogtreecommitdiffstats
path: root/roles/docker
diff options
context:
space:
mode:
authorMichael Gugino <gugino.michael@yahoo.com>2017-11-27 11:50:23 -0500
committerGitHub <noreply@github.com>2017-11-27 11:50:23 -0500
commit174ada425abba669c7fd75368486576c8c376b46 (patch)
treec8ac7eadc1d658929ae8a9881d93c3509374b8d7 /roles/docker
parent05b13fa07f6913ba1afeae50c6647938033769a9 (diff)
parent06cd87127e2e2da665121e41d35f9a408e25ce0a (diff)
downloadopenshift-174ada425abba669c7fd75368486576c8c376b46.tar.gz
openshift-174ada425abba669c7fd75368486576c8c376b46.tar.bz2
openshift-174ada425abba669c7fd75368486576c8c376b46.tar.xz
openshift-174ada425abba669c7fd75368486576c8c376b46.zip
Merge pull request #6178 from giuseppe/copy-docker-to-alt-storage-path
docker: copy Docker metadata to the alternative storage path
Diffstat (limited to 'roles/docker')
-rw-r--r--roles/docker/tasks/main.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index 55052b0a3..b02a74711 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -60,10 +60,11 @@
state: stopped
name: "{{ openshift.docker.service_name }}"
- - name: "Ensure {{ docker_alt_storage_path }} exists"
- file:
- path: "{{ docker_alt_storage_path }}"
- state: directory
+ - name: copy "{{ docker_default_storage_path }}" to "{{ docker_alt_storage_path }}"
+ command: "cp -r {{ docker_default_storage_path }} {{ docker_alt_storage_path }}"
+ register: results
+ failed_when:
+ - results.rc != 0
- name: "Set the selinux context on {{ docker_alt_storage_path }}"
command: "semanage fcontext -a -e {{ docker_default_storage_path }} {{ docker_alt_storage_path }}"