main.yml 551 B

1234567891011121314
  1. ---
  2. - set_fact: _ortr_images="--images='{{ openshift.master.registry_url }}'"
  3. - set_fact: _ortr_selector="--selector='{{ openshift.master.router_selector }}'"
  4. - name: Deploy OpenShift Router
  5. command: >
  6. {{ openshift.common.admin_binary }} router
  7. --create --replicas={{ openshift.master.infra_nodes }}
  8. --service-account=router {{ _ortr_selector }}
  9. --credentials={{ openshift_master_config_dir }}/openshift-router.kubeconfig {{ _ortr_images }}
  10. register: _ortr_results
  11. changed_when: "'service exists' not in _ortr_results.stdout"