main.yml 399 B

1234567891011
  1. ---
  2. - set_fact: _oreg_images="--images={{ oreg_url|quote }}"
  3. when: oreg_url is defined
  4. - name: Deploy OpenShift Registry
  5. command: >
  6. {{ openshift.common.admin_binary }} registry
  7. --create
  8. --credentials={{ openshift_master_config_dir }}/openshift-registry.kubeconfig {{ _oreg_images|default() }}
  9. register: _oreg_results
  10. changed_when: "'service exists' not in _oreg_results.stdout"