Docker registry: redeploy certs and update DC env vars only when registry is managed
@@ -115,6 +115,8 @@
- import_role:
name: openshift_hosted
tasks_from: registry_service_account.yml
+ when: openshift_hosted_manage_registry | default(True) | bool
tasks_from: remove_legacy_env_variables.yml
@@ -92,6 +92,7 @@
{{ openshift_client_binary }} rollout latest dc/docker-registry
--config={{ mktemp.stdout }}/admin.kubeconfig
-n default
+ when: l_docker_registry_dc.rc == 0
- name: Delete temp directory
file: