diff --git a/playbooks/common/private/components.yml b/playbooks/common/private/components.yml index 739be93c579..089645d07a0 100644 --- a/playbooks/common/private/components.yml +++ b/playbooks/common/private/components.yml @@ -20,9 +20,7 @@ - import_playbook: ../../openshift-hosted/private/config.yml - import_playbook: ../../openshift-web-console/private/config.yml - when: - - openshift_web_console_install | default(true) | bool - - openshift.common.version_gte_3_9 + when: openshift_web_console_install | default(true) | bool - import_playbook: ../../openshift-metrics/private/config.yml when: openshift_metrics_install_metrics | default(false) | bool diff --git a/playbooks/openshift-web-console/private/config.yml b/playbooks/openshift-web-console/private/config.yml index ffd702d20fe..c99cf03550d 100644 --- a/playbooks/openshift-web-console/private/config.yml +++ b/playbooks/openshift-web-console/private/config.yml @@ -13,10 +13,13 @@ - name: Web Console hosts: oo_first_master - roles: - - openshift_web_console vars: first_master: "{{ groups.oo_first_master[0] }}" + tasks: + - debug: msg="{{ openshift_version | version_compare('3.9', '>=') }}" + - import_role: + name: openshift_web_console + when: openshift_version | version_compare('3.9', '>=') - name: Web Console Install Checkpoint End hosts: all