From 470524c9154a3a69a7fe3fb385578bf80ee93558 Mon Sep 17 00:00:00 2001 From: Julien Brochet Date: Tue, 22 Aug 2017 17:23:07 +0200 Subject: ensured to always use a certificate for the router --- roles/openshift_hosted/tasks/router/router.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/openshift_hosted/tasks/router/router.yml b/roles/openshift_hosted/tasks/router/router.yml index 72a1ead80..eb91bac12 100644 --- a/roles/openshift_hosted/tasks/router/router.yml +++ b/roles/openshift_hosted/tasks/router/router.yml @@ -50,7 +50,7 @@ src: "{{ item }}" with_items: "{{ openshift_hosted_routers | oo_collect(attribute='certificate') | oo_select_keys_from_list(['keyfile', 'certfile', 'cafile']) }}" - when: not openshift_hosted_router_create_certificate | bool + when: ( not openshift_hosted_router_create_certificate | bool ) or openshift_hosted_router_certificate != {} - name: Create the router service account(s) oc_serviceaccount: -- cgit v1.2.3