main.yml 429 B

12345678
  1. ---
  2. - set_fact: _option_images="--images={{ openshift_registry_url|quote }}"
  3. when: openshift_registry_url is defined
  4. - name: Deploy OpenShift Router
  5. command: openshift ex router --create --credentials=/var/lib/openshift/openshift.local.certificates/openshift-router/.kubeconfig {{ _option_images|default() }}
  6. register: _openshift_router__results
  7. changed_when: "'service exists' not in _openshift_router__results.stdout"