Bläddra i källkod

ensured to always use a certificate for the router

Julien Brochet 7 år sedan
förälder
incheckning
470524c915
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      roles/openshift_hosted/tasks/router/router.yml

+ 1 - 1
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: