---
- name: remove legacy environment variables from registry dc
  oc_env:
    kind: dc
    name: "{{ openshift_hosted_registry_name }}"
    namespace: "{{ openshift_hosted_registry_namespace }}"
    state: absent
    env_vars:
      BEARER_TOKEN:
      BEARER_TOKEN_FILE:
      KUBERNETES_MASTER:
      OPENSHIFT_CA_FILE:
      OPENSHIFT_CERT_FILE:
      OPENSHIFT_INSECURE:
      OPENSHIFT_KEY_FILE:
      OPENSHIFT_MASTER:

Remove legacy env variables from the registry deploymentconfig if present
Remove legacy env variables from the registry deploymentconfig if present

Signed-off-by: Gladkov Alexey <c3a6b77263aa5673e69e156017f6482a5bd90458@redhat.com>
