diff options
author | Scott Dodson <sdodson@redhat.com> | 2018-01-31 11:21:24 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2018-01-31 11:21:24 -0500 |
commit | b3a5fb96ea09fa909ac7548e31322e6f65e7b792 (patch) | |
tree | f668d8d7ca6284db5164fcff2ca8492b95c15f7f /roles/openshift_metrics/tasks | |
parent | fbb3dabe04db0fd090e990baa50aaea33829baa0 (diff) | |
download | openshift-b3a5fb96ea09fa909ac7548e31322e6f65e7b792.tar.gz openshift-b3a5fb96ea09fa909ac7548e31322e6f65e7b792.tar.bz2 openshift-b3a5fb96ea09fa909ac7548e31322e6f65e7b792.tar.xz openshift-b3a5fb96ea09fa909ac7548e31322e6f65e7b792.zip |
Only perform console configmap ops when >= 3.9
Diffstat (limited to 'roles/openshift_metrics/tasks')
-rw-r--r-- | roles/openshift_metrics/tasks/install_metrics.yaml | 4 | ||||
-rw-r--r-- | roles/openshift_metrics/tasks/uninstall_metrics.yaml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/roles/openshift_metrics/tasks/install_metrics.yaml b/roles/openshift_metrics/tasks/install_metrics.yaml index 6b6c21d71..f05c8968d 100644 --- a/roles/openshift_metrics/tasks/install_metrics.yaml +++ b/roles/openshift_metrics/tasks/install_metrics.yaml @@ -79,7 +79,9 @@ console_config_edits: - key: clusterInfo#metricsPublicURL value: "https://{{ openshift_metrics_hawkular_hostname}}/hawkular/metrics" - when: openshift_web_console_install | default(true) | bool + when: + - openshift_web_console_install | default(true) | bool + - openshift.common.version_gte_3_9 - command: > {{openshift_client_binary}} diff --git a/roles/openshift_metrics/tasks/uninstall_metrics.yaml b/roles/openshift_metrics/tasks/uninstall_metrics.yaml index 1664e9975..ed849916d 100644 --- a/roles/openshift_metrics/tasks/uninstall_metrics.yaml +++ b/roles/openshift_metrics/tasks/uninstall_metrics.yaml @@ -28,4 +28,6 @@ console_config_edits: - key: clusterInfo#metricsPublicURL value: "" - when: openshift_web_console_install | default(true) | bool + when: + - openshift_web_console_install | default(true) | bool + - openshift.common.version_gte_3_9 |