summaryrefslogtreecommitdiffstats
path: root/roles/docker
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-05-09 11:32:38 -0400
committerScott Dodson <sdodson@redhat.com>2016-05-09 11:32:38 -0400
commit65e5a1cff1df156ab0eb9f57ce302ae2ed47bbf1 (patch)
treefdca8ea6195d887472bc09f19979c1228c00963c /roles/docker
parent31c3daf9d81afcb85bd22c8ad47eea9381c5cc34 (diff)
downloadopenshift-65e5a1cff1df156ab0eb9f57ce302ae2ed47bbf1.tar.gz
openshift-65e5a1cff1df156ab0eb9f57ce302ae2ed47bbf1.tar.bz2
openshift-65e5a1cff1df156ab0eb9f57ce302ae2ed47bbf1.tar.xz
openshift-65e5a1cff1df156ab0eb9f57ce302ae2ed47bbf1.zip
Use yum swap to downgrade docker
Diffstat (limited to 'roles/docker')
-rw-r--r--roles/docker/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index e4a31c692..dd7b0cf19 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -16,7 +16,7 @@
when: docker_storage_check.stat.exists | bool and not docker_version_result | skipped and docker_version_result.stdout | default('0.0', True) | version_compare('1.9', '>=') and docker_version | version_compare('1.9', '<')
- name: Downgrade docker if necessary
- command: "{{ ansible_pkg_mgr }} downgrade -y docker-{{ docker_version }}"
+ command: "{{ ansible_pkg_mgr }} swap -y docker-* docker-*{{ docker_version }}"
register: docker_downgrade_result
when: not docker_version_result | skipped and docker_version_result.stdout | default('0.0', True) | version_compare(docker_version, 'gt')