summaryrefslogtreecommitdiffstats
path: root/roles/openshift_common/tasks
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-06-06 11:47:50 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-06-06 11:47:50 -0300
commit88839ab89210ecd3d20d1f10f8f03bf0a801502a (patch)
treef0816491f80f7ac5839259323785782e222f66a3 /roles/openshift_common/tasks
parent81cb935e1817df4c633397680e963d635ed42e26 (diff)
downloadopenshift-88839ab89210ecd3d20d1f10f8f03bf0a801502a.tar.gz
openshift-88839ab89210ecd3d20d1f10f8f03bf0a801502a.tar.bz2
openshift-88839ab89210ecd3d20d1f10f8f03bf0a801502a.tar.xz
openshift-88839ab89210ecd3d20d1f10f8f03bf0a801502a.zip
Do not install rpm for version in openshift_version role.
Diffstat (limited to 'roles/openshift_common/tasks')
-rw-r--r--roles/openshift_common/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml
index d548daae6..4ec255dbc 100644
--- a/roles/openshift_common/tasks/main.yml
+++ b/roles/openshift_common/tasks/main.yml
@@ -29,6 +29,17 @@
data_dir: "{{ openshift_data_dir | default(None) }}"
use_dnsmasq: "{{ openshift_use_dnsmasq | default(None) }}"
+# Using oo_image_tag_to_rpm_version here is a workaround for how
+# openshift_version is set. That value is computed based on either RPM
+# versions or image tags. openshift_common's usage requires that it be a RPM
+# version and openshift_cli expects it to be an image tag.
+- name: Install the base package for versioning
+ action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}{{ openshift_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }} state=present"
+ when: not openshift.common.is_containerized | bool
+
+- name: Set version facts
+ openshift_facts:
+
# For enterprise versions < 3.1 and origin versions < 1.1 we want to set the
# hostname by default.
- set_fact: