Browse Source

Merge pull request #3052 from soltysh/docker_registry_volume

Re-add when condition which was removed mistakenly in #3036
Scott Dodson 8 years ago
parent
commit
f30d600bd1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      roles/openshift_hosted/tasks/registry/secure.yml

+ 1 - 0
roles/openshift_hosted/tasks/registry/secure.yml

@@ -40,6 +40,7 @@
     --hostnames="{{ docker_registry_service_ip.stdout }},docker-registry.default.svc.cluster.local,{{ docker_registry_route_hostname }}"
     --cert={{ openshift_master_config_dir }}/registry.crt
     --key={{ openshift_master_config_dir }}/registry.key
+  when: False in (docker_registry_certificates_stat_result.results | default([]) | oo_collect(attribute='stat.exists') | list)
 
 - name: Create the secret for the registry certificates
   command: >