diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-06 10:42:12 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-12 14:12:42 -0400 |
commit | 477f04a7a9846579d2bc86d9c260d9849f593961 (patch) | |
tree | 12f5d52295ae92f74843e1a2be83638505563e01 /roles/openshift_docker_facts | |
parent | e284ee1c2dba7f6ceeedf8af4adc60a795721166 (diff) | |
download | openshift-477f04a7a9846579d2bc86d9c260d9849f593961.tar.gz openshift-477f04a7a9846579d2bc86d9c260d9849f593961.tar.bz2 openshift-477f04a7a9846579d2bc86d9c260d9849f593961.tar.xz openshift-477f04a7a9846579d2bc86d9c260d9849f593961.zip |
Containerized installs on RHEL were downgrading docker unnecessarily
Diffstat (limited to 'roles/openshift_docker_facts')
-rw-r--r-- | roles/openshift_docker_facts/tasks/main.yml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/roles/openshift_docker_facts/tasks/main.yml b/roles/openshift_docker_facts/tasks/main.yml index eb762e33f..7ea359af1 100644 --- a/roles/openshift_docker_facts/tasks/main.yml +++ b/roles/openshift_docker_facts/tasks/main.yml @@ -46,10 +46,24 @@ register: common_version failed_when: false changed_when: false - when: not openshift.common.is_atomic | bool + when: not openshift.common.is_containerized | bool + +- set_fact: + l_common_version: "{{ openshift.common.image_tag | default('0.0', True) | oo_image_tag_to_rpm_version }}" + when: openshift.common.is_containerized | bool + +- set_fact: + l_common_version: "{{ common_version.stdout | default('0.0', True) }}" + when: not openshift.common.is_containerized | bool - name: Set docker version to be installed set_fact: docker_version: "{{ '1.8.2' }}" - when: " ( common_version.stdout | default('0.0', True) | version_compare('3.2','<') and openshift.common.service_type == 'atomic-openshift' ) or - ( common_version.stdout | default('0.0', True) | version_compare('1.1.4','<') and openshift.common.service_type == 'origin' )" + when: " ( l_common_version | version_compare('3.2','<') and openshift.common.service_type == 'atomic-openshift' ) or + ( l_common_version | version_compare('1.1.4','<') and openshift.common.service_type == 'origin' )" + +- name: Set docker version to be installed + set_fact: + docker_version: "{{ '1.9.1' }}" + when: " ( l_common_version | version_compare('3.2','>') and openshift.common.service_type == 'atomic-openshift' ) or + ( l_common_version | version_compare('1.2','>') and openshift.common.service_type == 'origin' )" |