summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-06-13 13:02:32 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-06-13 13:02:32 -0300
commitef37abd3dd236d1c7129527a057ca2ac6377cb75 (patch)
tree9c8e35035730f0443ee29528f4b924e3b49d4384 /roles/openshift_version
parent3e850ad3a64c81031d928a18b7cef0bc7c3cd184 (diff)
downloadopenshift-ef37abd3dd236d1c7129527a057ca2ac6377cb75.tar.gz
openshift-ef37abd3dd236d1c7129527a057ca2ac6377cb75.tar.bz2
openshift-ef37abd3dd236d1c7129527a057ca2ac6377cb75.tar.xz
openshift-ef37abd3dd236d1c7129527a057ca2ac6377cb75.zip
Fix rpm installs.
Diffstat (limited to 'roles/openshift_version')
-rw-r--r--roles/openshift_version/tasks/main.yml16
-rw-r--r--roles/openshift_version/tasks/set_version_rpm.yml2
2 files changed, 11 insertions, 7 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml
index 29724a9e5..e27add09e 100644
--- a/roles/openshift_version/tasks/main.yml
+++ b/roles/openshift_version/tasks/main.yml
@@ -9,11 +9,6 @@
openshift_version: "{{ openshift_version }}"
when: openshift_version is defined
-- debug: var=openshift_version
-- debug: var=openshift_release
-- debug: var=openshift_pkg_version
-- debug: var=openshift_image_tag
-
# Protect the installed version by default unless explicitly told not to, or given an
# openshift_version already.
- name: Use openshift.common.version fact as version to configure if already installed
@@ -21,13 +16,20 @@
openshift_version: "{{ openshift.common.version }}"
when: openshift.common.version is defined and openshift_version is not defined and openshift_protect_installed_version
+- debug: var=is_containerized
+- debug: var=openshift_version
+- debug: msg="{{ openshift_version is defined }}"
+- debug: var=openshift_release
+- debug: var=openshift_pkg_version
+- debug: var=openshift_image_tag
+
- name: Set openshift_version for rpm installation
include: set_version_rpm.yml
- when: not is_containerized
+ when: not is_containerized | bool
- name: Set openshift_version for containerized installation
include: set_version_containerized.yml
- when: is_containerized
+ when: is_containerized | bool
- debug: var=openshift_version
diff --git a/roles/openshift_version/tasks/set_version_rpm.yml b/roles/openshift_version/tasks/set_version_rpm.yml
index bcf275135..b15f0e993 100644
--- a/roles/openshift_version/tasks/set_version_rpm.yml
+++ b/roles/openshift_version/tasks/set_version_rpm.yml
@@ -7,6 +7,8 @@
openshift_version: "{{ openshift_pkg_version[1:].split('-')[0] }}"
when: openshift_pkg_version is defined and openshift_version is not defined
+- debug: var=openshift_version
+
- name: Gather common package version
command: >
{{ repoquery_cmd }} --qf '%{version}' "{{ openshift.common.service_type}}"