diff --git a/roles/default/kiali-deploy/tasks/kubernetes/k8s-main.yml b/roles/default/kiali-deploy/tasks/kubernetes/k8s-main.yml index 5cd80185..76937305 100644 --- a/roles/default/kiali-deploy/tasks/kubernetes/k8s-main.yml +++ b/roles/default/kiali-deploy/tasks/kubernetes/k8s-main.yml @@ -21,7 +21,7 @@ role_namespaces: "{{ [ kiali_vars.deployment.namespace ] }}" process_resource_templates: - "templates/kubernetes/serviceaccount.yaml" - - "{{ 'templates/kubernetes/configmap.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}" + - "templates/kubernetes/configmap.yaml" - "templates/kubernetes/{{ 'role-viewer' if ((kiali_vars.deployment.view_only_mode|bool == True) or (kiali_vars.auth.strategy != 'anonymous')) else 'role' }}.yaml" - "templates/kubernetes/rolebinding.yaml" - "{{ 'templates/kubernetes/deployment.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}" diff --git a/roles/default/kiali-deploy/tasks/openshift/os-main.yml b/roles/default/kiali-deploy/tasks/openshift/os-main.yml index ee8da853..cddce08b 100644 --- a/roles/default/kiali-deploy/tasks/openshift/os-main.yml +++ b/roles/default/kiali-deploy/tasks/openshift/os-main.yml @@ -31,7 +31,7 @@ role_namespaces: "{{ [ kiali_vars.deployment.namespace ] }}" process_resource_templates: - "templates/openshift/serviceaccount.yaml" - - "{{ 'templates/openshift/configmap.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}" + - "templates/openshift/configmap.yaml" - "{{ 'templates/openshift/cabundle.yaml' if kiali_vars.deployment.remote_cluster_resources_only|bool == False else '' }}" - "templates/openshift/{{ 'role-viewer' if ((kiali_vars.deployment.view_only_mode|bool == True) or (kiali_vars.auth.strategy != 'anonymous')) else 'role' }}.yaml" - "templates/openshift/rolebinding.yaml"