diff --git a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 index c889f3332c..251b31780a 100644 --- a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 +++ b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 @@ -761,11 +761,13 @@ openshift_master_console_port={{openshift_console_port}} # each OpenShift service: node, master (api and controllers). # API and controllers environment variables are merged in single # master environments. -{% if defined no_http2 and no_http2 %} +{% if defined no_http2 %} +{% if no_http2 %} openshift_master_api_env_vars={"ENABLE_HTTP2": "true"} openshift_master_controllers_env_vars={"ENABLE_HTTP2": "true"} openshift_node_env_vars={"ENABLE_HTTP2": "true"} {% endif %} +{% endif %} # Enable API service auditing, available as of 3.2 #openshift_master_audit_config={"enabled": true}